Page 1 of 1
title and link in a page block
Posted: Fri Sep 21, 2007 10:00 am
by barry cooper
Hi All,
I have added a page block to a web page
http://www.motivateddesign.co.uk/motiva ... ge=contact
how do I remove the word 'Content' and the contact hyperlink?
Thanks
Barry Cooper
Re: title and link in a page block
Posted: Fri Sep 21, 2007 10:19 am
by RonnyK
Barry,
what is the content of that content-block?
Ronny
Re: title and link in a page block
Posted: Fri Sep 21, 2007 10:22 am
by barry cooper
Hi Ronny
If you open this page
http://www.motivateddesign.co.uk/motiva ... ge=contact
It is the block on the right hand side. Address, tel number etc
Thanks
Barry
Re: title and link in a page block
Posted: Fri Sep 21, 2007 10:27 am
by RonnyK
I saw that, but I meant the code as it shows in the backend, what is shown in the editor?
Ronny
Re: title and link in a page block
Posted: Fri Sep 21, 2007 10:32 am
by barry cooper
Sorry Ronny I miss-understood
The code in the editor is:
Telephone Number:07854 786230 Registered Office:Motivated Design Ltd
58 Chalmers Road
Cambridge
Cambridgeshire
CB1 3SXRegistered in England and Wales
Registration Number: 6304681
The text I don't want appears above this HTML.
Is there some PHP somewhere generating it?
Thanks
Barry
Re: title and link in a page block
Posted: Fri Sep 21, 2007 11:34 am
by alby
barry cooper wrote:
The text I don't want appears above this HTML.
Is there some PHP somewhere generating it?
Check your template, you have a similar text:
....................
Contact
ContentsContact {content block="contact"}
stuff
Copy text template in a notepad text (for backup)
Delete above red text, Submit, Go to Global Settings > Clear Cache and check
Alby
Re: title and link in a page block
Posted: Fri Sep 21, 2007 1:20 pm
by barry cooper
Hi Alby,
My template reads:
Contact
{cms_module module='pageblocks'}
stuff
This is what I am finding confusing. The page block is being generated by a PHP query (I think) and must be putting the items I don't want on the page. I cannot see where this extra data is coming from.
I could put the text I require directly into the template but that is cheating.
Any other ideas?
Thanks
Barry
Re: title and link in a page block
Posted: Fri Sep 21, 2007 1:25 pm
by RonnyK
I can't help you with this one Barry, I never use pageblocks and from its help I don't see why it puts in extra code.
Do you want this code in the rightbar, on every page to be the same, or do you want different content in every pages rightbar?
Ronny
Re: title and link in a page block
Posted: Fri Sep 21, 2007 1:30 pm
by barry cooper
Hi Ronny,
I want to have different information on each page. Using the page block system if possible.
If not I will have to go back to hard coding.
Thanks
Barry
[Solved] Re: title and link in a page block
Posted: Fri Sep 21, 2007 1:45 pm
by barry cooper
I have found the solution.
In the options page for the template which drives the page block are options to show table of contents and a redirect link.
strange but true.
Thanks Ronny and Alby.
Regards
Barry Cooper
Re: title and link in a page block
Posted: Fri Sep 21, 2007 1:48 pm
by RonnyK
I understand Barry,
but I don't see the additional thing with pageblocks, as {content} already gives you the possibility to put a extra content-block in the template. By opening a content-page, you than have two or more content-areas to edit.
From the help of {content}-tag:
(optional)block - Allows you to have more than one content block per page. When multiple content tags are put on a template, that number of edit boxes will be displayed when the page is edited.
Example:
{content block="Second Content Block"}
Ronny
Re: title and link in a page block
Posted: Fri Sep 21, 2007 2:00 pm
by barry cooper
Thanks for that Ronny,
I will look into your suggestion. The reason I like page blocks is the nice management system that comes with it in this CMS. Also people (clients) who have used other CMS systems (Drupal comes to mind) will be used to the terminology.
Thanks again
Regards
Barry Cooper