Extra content connected to a specific page

General project discussion. NOT for help questions.
Post Reply
Maarten
Forum Members
Forum Members
Posts: 84
Joined: Sat May 06, 2006 9:52 am

Extra content connected to a specific page

Post by Maarten »

I want to do something that doesn't look to difficult but I think it is. For example I have a page Demo with the content demo that is the default text for that page. But I also want to have another piece of text in the same page. You can do that with a global content block, but I want an extra content block on every page. So for page Demo2 I have to make another template with the Global Content block demo2

Is there no way to add a global content block (or something else) with a title variable?

Like {global_content name='{title}'} so that each page automaticly get's the right content block without having to make a template for every page. I hope you get what I want and that you can help me.

Thanks!
Maarten
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Extra content connected to a specific page

Post by calguy1000 »

{global_content name=$page_alias}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Maarten
Forum Members
Forum Members
Posts: 84
Joined: Sat May 06, 2006 9:52 am

Re: Extra content connected to a specific page

Post by Maarten »

hahaha it is Simple, Thank you Calguy!
faglork

Re: Extra content connected to a specific page

Post by faglork »

Hi,

just curious: what is the idea behind this?

With this solution, you need to create GCBs for every page in the admin GCB section. So, in the admin interface, you have to switch between page administaration and GCBs.

However, if you use a simple

Code: Select all

{content block="mysecondblock"  wysiwyg="true"}
in your template, you have the edit field right on every page, no need to switch to GCB section.

Or did I get you completely wrong?

Cheers,
Alex
Maarten
Forum Members
Forum Members
Posts: 84
Joined: Sat May 06, 2006 9:52 am

Re: Extra content connected to a specific page

Post by Maarten »

Hi, yes I see what you mean. But I want a specific right content on my website. So every page will have different content in the right block. So I don't think there is an easier solution.
faglork

Re: Extra content connected to a specific page

Post by faglork »

Maarten wrote: But I want a specific right content on my website. So every page will have different content in the right block.
Excuse me for being dense ... this is just what I said?

Content blocks give you page-specific content ... the difference between CBs and GCBs is that

1) you enter the content for a "Content Block" right in  the page admin area (where you enter all other content as well), whereas for a "Global Content Block" you have to switch over to the GCB admin area. If you have to maintain 5 pages, no problems. If you have to maintain 100 pages, this  is very cumbersome.

2) in order to make a global content block page-specific you need to create one "global" content block per page, limiting its range to that very page ... which turns the concept of the GCBs completely on its head. It will work, but IMO the better solution are CBs (which are page specific PER SE) instead of GCBs.

Just give it a try ...

Cheers,
Alex
Last edited by faglork on Fri Apr 11, 2008 11:44 pm, edited 1 time in total.
Maarten
Forum Members
Forum Members
Posts: 84
Joined: Sat May 06, 2006 9:52 am

Re: Extra content connected to a specific page

Post by Maarten »

You're a genius! Thank you, I didn't know it could be done that simple!
faglork

Re: Extra content connected to a specific page

Post by faglork »

Hi!

This is what amazes me again and again - the sheer simplicity of CMSMS. Sometimes it is so simple you just don't see it.

cheers,
Alex
Maarten
Forum Members
Forum Members
Posts: 84
Joined: Sat May 06, 2006 9:52 am

Re: Extra content connected to a specific page

Post by Maarten »

Hi yes indeed, but where did you see it because I haven't seen this anywhere in the documentation?
Richardo P
Forum Members
Forum Members
Posts: 33
Joined: Fri Aug 17, 2007 8:35 am

Re: Extra content connected to a specific page

Post by Richardo P »

I'm considering writing a tutorial on this subject,

So stay tuned.  I just need to brush up on the subject myself.

Richard
Maarten
Forum Members
Forum Members
Posts: 84
Joined: Sat May 06, 2006 9:52 am

Re: Extra content connected to a specific page

Post by Maarten »

Okay thank you, I've been working with cmsms for quite some time now but I really didn't know this was possible, if only I had asked it sooner.
faglork

Re: Extra content connected to a specific page

Post by faglork »

Maarten wrote: Hi yes indeed, but where did you see it because I haven't seen this anywhere in the documentation?
It is in the help section of the "content" tag. In CMSMS admin, go to "Extensions" - "Tags"  and click the "Help" for the "content" tag.

hth,
Alex
Post Reply

Return to “General Discussion”