I'm trying to solve a couple problems, and ran into something I'm not understanding. Forgive me, if I'm just being dense.
I know there's the basic required {content} tag
And I know the tag, {global_content}
But that leaves me with a third option, I'm not understanding how to set up - or if it's something different: the ability to use the {content tag by adding "block" - like this:
{content block="Sidebar"}
Where do I designate this new content block category, or assign pages to it? Or is this just referring to global_content?
need clarification on content blocks
-
- Forum Members
- Posts: 34
- Joined: Tue Oct 08, 2013 8:29 pm
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: need clarification on content blocks
You put the additional content blocks in your page template.
Then you assign pages to use that page template.
Then you assign pages to use that page template.
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.
-
- Forum Members
- Posts: 34
- Joined: Tue Oct 08, 2013 8:29 pm
Re: need clarification on content blocks
ahhh! ok.. got it figured out.
Out of curiosity, is there a simple way to have content within that extra content block only appear if they're within certain menu sections of the site? Or will it cause problems with that content block?
Out of curiosity, is there a simple way to have content within that extra content block only appear if they're within certain menu sections of the site? Or will it cause problems with that content block?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: need clarification on content blocks
for that, you need logic inside the page template. and probably a third party module (CGSimpleSmarty).
logic something like (paraphrasing)
{if this_page_is_child_of('somesection') or page_alias is 'somesection')}
{content block='otherblock'}
{/if}
Note: the edit area for 'otherblock' will appear in the edit content form of all content pages using that template. regardless of whether they pass the above test or not.... However, on frontend display the test will be used.
logic something like (paraphrasing)
{if this_page_is_child_of('somesection') or page_alias is 'somesection')}
{content block='otherblock'}
{/if}
Note: the edit area for 'otherblock' will appear in the edit content form of all content pages using that template. regardless of whether they pass the above test or not.... However, on frontend display the test will be used.
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.