Extra content connected to a specific page
Extra content connected to a specific page
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
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
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Extra content connected to a specific page
{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.
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.
Re: Extra content connected to a specific page
hahaha it is Simple, Thank you Calguy!
Re: Extra content connected to a specific page
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
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
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"}
Or did I get you completely wrong?
Cheers,
Alex
Re: Extra content connected to a specific page
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
Excuse me for being dense ... this is just what I said?Maarten wrote: But I want a specific right content on my website. So every page will have different content in the right block.
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.
Re: Extra content connected to a specific page
You're a genius! Thank you, I didn't know it could be done that simple!
Re: Extra content connected to a specific page
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
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
Hi yes indeed, but where did you see it because I haven't seen this anywhere in the documentation?
-
- Forum Members
- Posts: 33
- Joined: Fri Aug 17, 2007 8:35 am
Re: Extra content connected to a specific page
I'm considering writing a tutorial on this subject,
So stay tuned. I just need to brush up on the subject myself.
Richard
So stay tuned. I just need to brush up on the subject myself.
Richard
Menu Manager Tutorial: http://themes.cmsmadesimple.org/menu_manager_options.html
Re: Extra content connected to a specific page
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
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.Maarten wrote: Hi yes indeed, but where did you see it because I haven't seen this anywhere in the documentation?
hth,
Alex