Short code

Discuss everything related to ApPHP Restaurant Site script.

Moderators: alexandrleonenko, alexmst

william_13
Senior
Senior
Posts: 41
Joined: May 24th, '11, 11:56

Short code

Postby william_13 » Aug 13th, '14, 15:45

good evening admin
how to remove the shorts-code when you create a page in restaurant script
ex Shortcodes:{module:restaurant!reservation}
{module:webforms}
{module:news}
{module:testimonials} this
{module:gallery}
{module:faq} this
Thank you to you

regards
william_13 8-)

administrator
Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18
Contact:

Re: Short code

Postby administrator » Aug 13th, '14, 15:56

This list is created automatocally - look in apropriate controller and action

paragate
Master
Master
Posts: 151
Joined: Nov 13th, '14, 13:04
Location: Denmark, Odense

Re: Short code

Postby paragate » Aug 19th, '16, 11:05

example
http://restaurant.dev/pages/add
protected/modules/cms/controllers/PagesController.php
the function add refer to this->_view->render('pages/add');

protected/modules/cms/views/pages/add.php
you can out comment shortcodes,

<div class="row"
<label for="sort_order" class="small"><?php echo A::t('cms', 'Shortcodes'); ?>:</label
<?php /*
echo '<label class="shortcodes">';
foreach($shortCodes as $key => $val){
echo '<span class="tooltip-link" title="'.$val['description'].'">'.$val['value'].'</span><br>';
}
echo '</label>';
*/?>
</div>


Return to “ApPHP Restaurant Site {developers/users}”