Hi,
I've created a site and launched. The client has come back to me and asked me to introduce FEU. I wish to place the login into a global content block which is in a header on the site. This appears on every page.
The site is large enough with several templates, all of which have multiple content blocks per template e.g. left column, middle column, right column.
When I introduce FEU it will not work on the pages with {content block="foo"}... I've tested it and it only seems to work if there is a block with just {content}.
Is there a way around this?
Thanks,
Nick
Front End Users and Content blocks
-
- Forum Members
- Posts: 30
- Joined: Fri Oct 31, 2008 12:51 pm
Re: Front End Users and Content blocks
that is correct. Many modules (not just FEU) depend on the presence of the default {content} block.
-
- Forum Members
- Posts: 30
- Joined: Fri Oct 31, 2008 12:51 pm
Re: Front End Users and Content blocks
Hmmm. Not great news!
I've updated cms_content_props with some SQL and copied the contents of a couple of named content blocks in to content_en and added the FEU code. Saved me a lot of typing.
Thanks.
I've updated cms_content_props with some SQL and copied the contents of a couple of named content blocks in to content_en and added the FEU code. Saved me a lot of typing.
Thanks.
Re: Front End Users and Content blocks
In this case, the best way. like you wrote is to use a GLOBAL CONTENT BLOCK (GCB)njprrogers wrote: This appears on every page.
If you need it - in this GCB you can put the html-code like:
Code: Select all
<!-- CustomContent -->
{* User eingeloggt? *}
{if $ccuser->loggedin() > 0}
<!-- Text or code if logged in -->
SOME TEXT OR CODE HERE .....
<!-- End Text or code if logged in -->
{else}
MAYBE SOME TEXT .....
{cms_module module=FrontEndUsers form='login'}
{/if}
<!-- ============================================================== -->
EDIT:
Maybe you can use a "trick" - if you have only content_en - you can capture the "content"-Block
{capture assign="NAMEofVARIABLE"}{content}{/capture}
Last edited by owr_bgld on Fri Jul 02, 2010 10:21 am, edited 1 time in total.