Code: Select all
{$page_title = $entry->title|cms_escape:htmlall scope=global}
Op welke manier kan ik een variabele doorgeven?
Dank alvast
Moderator: velden
Code: Select all
{$page_title = $entry->title|cms_escape:htmlall scope=global}
Code: Select all
{if empty($blogtitle)}{$blogtitle = "{title}" scope=global}{/if}
Code: Select all
{assign var='blogtitle' value=$entry->title}
Hier moet ook:Vervolgens in de template 'blogDetail' waarmee het artikel wordt getoond:Code: Select all
{assign var='blogtitle' value=$entry->title}
Code: Select all
{assign var='blogtitle' value=$entry->title scope=global}
Code: Select all
{strip}
{process_pagedata}
<!-- Main -->
{content assign='capturedcontent'}
{content block='main_second_column' label='Sidebar (right)' assign='mainsecondcolumn' wysiwyg='true'}
{content block='main_title' label='Main page title' assign='maintitle' wysiwyg="false" oneline="true"}
{content block='display_breadcrumbs' label="Display Breadcrumbs" oneline="true" size="1" assign="display_breadcrumbs" wysiwyg='false'}
{content block='search_page' label='Search results page' assign='search_page' wysiwyg="false" oneline="true"}
<!-- Header -->
{content block='display_header_image' label='Display header image' tab='Header' assign='display_header_image' oneline="true" size="1" wysiwyg='false'}
{content_image block='header_img' label="Header Image (first upload to Images folder)" tab='Header' assign='headerimg' dir="images" urlonly="true"}
{content block='headerimg_text' label='Header Image Text' assign='headerimgtext' wysiwyg="false" oneline="true" tab='Header'}
<!-- Social network -->
{content block='display_social' label='Display Social Icons' tab='Social Network' assign='display_social' oneline="true" size="1" wysiwyg='false'}
{content block='facebook' label='Facebook link here' tab='Social Network' assign='facebook' oneline="true" wysiwyg='false'}
{content block='twitter' label='Twitter link here' tab='Social Network' assign='twitter' oneline="true" wysiwyg='false'}
{content block='google' label='Google+ link here' tab='Social Network' assign='google' oneline="true" wysiwyg='false'}
{content block='pinterest' label='Pinterest link here' tab='Social Network' assign='pinterest' oneline="true" wysiwyg='false'}
{content block='feed' label='Live feed link here' tab='Social Network' assign='feed' oneline="true" wysiwyg='false'}
{share_data scope=parent vars='capturedcontent,mainsecondcolumn,maintitle,display_breadcrumbs,search_page,display_header_image,headerimg,headerimgtext,display_social,facebook,twitter,google,pinterest,feed,prev_page,next_page' scope=global}
{* copy from Responsive template added *}
{$lang = 'nl' scope=global}
{$theme_color = '#61363C' scope=global}
{$theme_color_light = '#E5D6CC' scope=global}
{$theme_url = "{uploads_url}/_template" scope=global}
{$site_name = "{sitename}" scope=global}
{if empty($canonical)}{$canonical = $content_obj->GetURL()|lower scope=global}{/if}
{if empty($description)}{$description = "{description}" scope=global}{/if}
{if empty($description)}{$description = $content|strip_tags|strip|truncate:150|default:'' scope=global}{/if}
{if empty($last_modified)}{$last_modified = "{modified_date format='%e-%m-%Y'}" scope=global}{/if}
{if empty($page_image)}{$page_image = "{$theme_url}/Main_Image_Uisge-Beatha.jpg" scope=global}{/if}
{if empty($page_title)}{$page_title = "{title}" scope=global}{/if}
{if empty($blogtitle)}{$blogtitle = "{title}" scope=global}{/if}
{* end copy *}
{/strip}
<!DOCTYPE html>
<__html lang="nl">
<head>
{strip}
Code: Select all
{$page_title = $entry->title|cms_escape:htmlall scope=global}
Code: Select all
{$blogtitle = $entry->title|cms_escape:htmlall scope=global}
Deze variabele heeft gewoon in de pagina wel een waarde?In Formbuilder is de inhoud van de variabele {$blogtitle} leeg.
In de pagina van het artikel heeft deze een waarde. Ter test in Formbuilder {$blogtitle} en {$page_title} gezet.Rolf wrote:Deze variabele heeft gewoon in de pagina wel een waarde?In Formbuilder is de inhoud van de variabele {$blogtitle} leeg.