Elxis CMS Forum
Support => General => Topic started by: ROUBOS on January 18, 2013, 12:17:09
-
Hi,
was looking at the frontpage editor in Nautilus and was wondering if someone could give me an idea of how it all works.
So the editor from what I understand gives you column layouts to choose from right? And you place module positions accordingly.
What do the numbers in the brackets of the modules mean?
-
i found it strange also.. forget the bracets...
forexample u want to have 3 columns..
so u see three cells option on right.
drag the frontpage 1(whatever u set for) to first cell of three cells
user 2 to the second cell
frontpage 3 to the third cell..
and set the tings u want to show in frontpage 1 (which will appear on th left 1/3 cell)
set sth. on user 2 and respectively 3..
at last u will see 3 coloums displaying..
thats all.. :)
-
The editor can be loaded with the elxisForm library. You can convert any textarea field into a WYSIWYG or BBCode editor.
HTML editor:
$form->addTextarea('mytext', '', 'My text', array('cols' => 80, 'rows' => 8, 'editor' => 'html'));
BBcode editor:
$form->addTextarea('mytext', '', 'My text', array('cols' => 80, 'rows' => 8, 'editor' => 'bbcode'));
If you want multilingualism you should use the addMLTextarea method instead and load translation data array too ($trdata).
Multilingual editor example:
$clang = eFactory::getElxis()->getConfig('LANG');
$cinfo = eFactory::getLang()->getallinfo($clang);
$trdata = array('category' => 'com_sample', 'element' => 'mytext', 'elid' => 12);
$form->addMLTextarea('mytext', $trdata, '', 'My text', array('cols' => 80, 'rows' => 8, 'editor' => 'html', 'forcedir' => $cinfo['DIR'], 'contentslang' => $clang));