title and link in a page block

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
barry cooper
Forum Members
Forum Members
Posts: 63
Joined: Fri Jul 13, 2007 6:49 am

title and link in a page block

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: title and link in a page block

Post by RonnyK »

Barry,

what is the content of that content-block?

Ronny
barry cooper
Forum Members
Forum Members
Posts: 63
Joined: Fri Jul 13, 2007 6:49 am

Re: title and link in a page block

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: title and link in a page block

Post by RonnyK »

I saw that, but I meant the code as it shows in the backend, what is shown in the editor?

Ronny
barry cooper
Forum Members
Forum Members
Posts: 63
Joined: Fri Jul 13, 2007 6:49 am

Re: title and link in a page block

Post 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 
alby

Re: title and link in a page block

Post 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
barry cooper
Forum Members
Forum Members
Posts: 63
Joined: Fri Jul 13, 2007 6:49 am

Re: title and link in a page block

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: title and link in a page block

Post 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
barry cooper
Forum Members
Forum Members
Posts: 63
Joined: Fri Jul 13, 2007 6:49 am

Re: title and link in a page block

Post 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
barry cooper
Forum Members
Forum Members
Posts: 63
Joined: Fri Jul 13, 2007 6:49 am

[Solved] Re: title and link in a page block

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: title and link in a page block

Post 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
barry cooper
Forum Members
Forum Members
Posts: 63
Joined: Fri Jul 13, 2007 6:49 am

Re: title and link in a page block

Post 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 
Post Reply

Return to “Layout and Design (CSS & HTML)”