Variables and template overides - Joomla! Forum - community, help and support
i working on following bit of code template override gcalendar. work if get
alas won't work , don't understand syntax/method can't fix it. {{tittle}} contains text need appears work if embedded within $content variable.
what trying split {{title}} 3 different entries use in form action @ end, like
yeah i'm mixing things little... ideas?
code: select all
$mytitle = {{title}};alas won't work , don't understand syntax/method can't fix it. {{tittle}} contains text need appears work if embedded within $content variable.
what trying split {{title}} 3 different entries use in form action @ end, like
code: select all
index.php?option=com_content&view=article&id=6&bookings&programme={{title}}&date={{date}}&cost=$cost&code=$codeyeah i'm mixing things little... ideas?
code: select all
defined('_jexec') or die('restricted access');
$dispatcher = jdispatcher::getinstance();
jpluginhelper::importplugin('gcalendar');
$document = jfactory::getdocument();
$document->addstylesheet(juri::base(). 'components/com_gcalendar/views/gcalendar/tmpl/gcalendar.css' );
$document->addstylesheet(juri::base().'components/com_gcalendar/views/event/tmpl/default.css');
$document->addscript(juri::base().'components/com_gcalendar/views/event/tmpl/default.js');
$mytitle = "this:is(a)test";
$titlechunks=explode(":", $mytitle);
$title=$titlechunks[0];
$titlechunks=explode("(",$titlechunks[1]);
$code=$titlechunks[0];
$titlechunks=explode(")",$titlechunks[1]);
$cost=$titlechunks[0];
$content = '{{#events}}
{{#calendarlink}}
<form name="input" action="index.php?option=com_content&view=article&id=6&bookings&programme={{title}}&date={{date}}" method="post">
<p><input name="submit" value="book programme" class="button art-button" type="submit"></p>
</form>
';
Comments
Post a Comment