Topic Closed
mabu
372 Posts
5.9K Downloads
4 Themes
9 Plugins

I was trying to add a userspecific  <?php gpOutput::Get('Extra','footer-sm-1'); ?> to a template-footer, but i had no success :  {{Missing extra content "footer-sm-1"}}

In Extra Content  i find : Footer footer1 - footer2 - footer3 - Footer Column 1 - Footer Column 2 - Footer Column 3 - Footer Column 4 --- which function, but no footer-sm-1.

I would be an idea to expand Typesetter that userspecific extra-names appear under  Extra Content  - or is there another way ?

* In MN Business Fixnav 1.2 i have found a strange way ... if (!file_exists($dataDir.'/data/_extra/footer1.php')){
gpFiles::SaveFile($dataDir.'/data/_extra/footer1.php','<div><p>My Company Inc.<br />Main Street 1<br />1010 Vienna<br />Austria</p></div>');

which doesnt function with footer-sm-1 instead of footer1.

-------------------------------------------
 P.S. SOLVED ..... not obvious

I have to add an new 'editable area'   footer-sm-1  in the CMS  under 'Extra Content' - the MN Business Fixnav-solution  seems rather superflous -

Then a folder ' footer-sm-1' appears under  /data/_extra. with a page.php  ---->  also for other beginners  - one of the many possibilities of Typesetter

Edited: 1 year ago#11777

juergen
1.5K Posts
60.6K Downloads
16 Plugins

 P.S. SOLVED

That's the correct way to do it.

Another way is to add a simple

<?php gpOutput::Get(); ?>

to template.php

This will create an 'empty Slot' you then can use to add extra content areas or menus via Layout Editor.

Edited: 1 year ago#11778

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Ennetb├╝rgen (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Websi...

Find out more about our Provider Spotlight

Log In

  Register