Content Blocks within Templates and Linking
Posted: Wed Jul 10, 2013 10:57 am
Firstly, hope I have this in the right place. Secondly how blooming great is cms made simple, just gets better the more I use it and learn new ways to develop.
Right, I have had my first attempt at creating a slider within a template so that my client can add the images via the content editor. This works great and my slider (using jquery) works brilliant.
Now, I want to allow them to link the slides to different urls. I have got this working at the moment where they have to enter the url into a text field in the content block.
What I want to do though is go one step further and allow them to use the CMS Linker and select an internal page to link to rather than an external page or have to enter the URL.
Here is my code for one of the images and the links:
Can someone please tell me if this is possible, rather than having to enter the link. If so how.
Thanks and appreciate the comments.
Zimmo
Right, I have had my first attempt at creating a slider within a template so that my client can add the images via the content editor. This works great and my slider (using jquery) works brilliant.
Now, I want to allow them to link the slides to different urls. I have got this working at the moment where they have to enter the url into a text field in the content block.
What I want to do though is go one step further and allow them to use the CMS Linker and select an internal page to link to rather than an external page or have to enter the URL.
Here is my code for one of the images and the links:
Code: Select all
{content_module block="first_block_image" label="First Block Image (950px width)" description='For best fit use 950px image width' module="GBFilePicker" tab='Three Blocks Content' assign=firstblockimage mode="browser"}
{content block='first_block_link' label='More Link (hyperlink)' assign='firstblocklink' wysiwyg="false" oneline="true" default='#' tab='Three Blocks Content'}
Thanks and appreciate the comments.
Zimmo