Variables and template overides - Joomla! Forum - community, help and support


i working on following bit of code template override gcalendar. work if get

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=$code


yeah 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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support