Page 1 of 1
Extra content connected to a specific page
Posted: Sun Mar 23, 2008 2:19 pm
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
Re: Extra content connected to a specific page
Posted: Sun Mar 23, 2008 2:21 pm
by calguy1000
{global_content name=$page_alias}
Re: Extra content connected to a specific page
Posted: Sun Mar 23, 2008 2:30 pm
by Maarten
hahaha it is Simple, Thank you Calguy!
Re: Extra content connected to a specific page
Posted: Tue Apr 08, 2008 9:17 am
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
Re: Extra content connected to a specific page
Posted: Tue Apr 08, 2008 10:59 am
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.
Re: Extra content connected to a specific page
Posted: Tue Apr 08, 2008 1:32 pm
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
Re: Extra content connected to a specific page
Posted: Fri Apr 11, 2008 5:29 pm
by Maarten
You're a genius! Thank you, I didn't know it could be done that simple!
Re: Extra content connected to a specific page
Posted: Fri Apr 11, 2008 11:41 pm
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
Re: Extra content connected to a specific page
Posted: Sat Apr 12, 2008 12:24 pm
by Maarten
Hi yes indeed, but where did you see it because I haven't seen this anywhere in the documentation?
Re: Extra content connected to a specific page
Posted: Sat Apr 12, 2008 2:33 pm
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
Re: Extra content connected to a specific page
Posted: Sat Apr 12, 2008 2:37 pm
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.
Re: Extra content connected to a specific page
Posted: Mon Apr 14, 2008 10:08 am
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