Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
submenu
#1
hello

is there a way to have submenu?
Reply
#2
I find I18 plugin
only i would need the menu on the left
more o or less like in the example of the autor of I18 plugin
http://mvlcek.bplaced.net/
Reply
#3
Use I18N plugin + custom  rendering(to assign classes to elements <ul>, <li>, etc.) + HTML, CSS (for position and menu design)
You can read the details:
http://mvlcek.bplaced.net/get-simple/i18n
http://mvlcek.bplaced.net/get-simple/mul...navigation
http://mvlcek.bplaced.net/get-simple/mul...-rendering

This will help if you want to display in the sidebar the child pages:
http://mvlcek.bplaced.net/get-simple/mul...v-children


Insert it in the template and get a simple menu as there http://mvlcek.bplaced.net/:
(This is the easiest option - the output only without rendering menu)
Code:
<ul>                    
   <?php get_i18n_navigation(return_page_slug(),0,99,I18N_SHOW_NORMAL); ?>
</ul>

Example menu rendering for Bootstrap:
(a component - to create in the admin panel, )
PHP Code:
<?php
$s 
= array('current''activepath''currentpath''open');
$r = array('active''active''active''dropdown');
$c str_replace($s$r$item->classes);
?>
<li class="<?php echo $c?>">
  <?php if ($item->isOpen) { ?>
  <a href="<?php echo htmlspecialchars($item->link); ?>" class="dropdown-toggle" data-toggle="dropdown">
    <?php echo htmlspecialchars($item->text); ?>
    <b class="caret"></b>
  </a>
  <ul class="dropdown-menu">
    <?php $item->outputChildren(); ?>
  </ul>    
  <?php } else { ?>
  <a href="<?php echo htmlspecialchars($item->link); ?>">
    <?php echo htmlspecialchars($item->text); ?>
  </a>    
  <?php ?>
</li> 
In the template use the following code:
PHP Code:
<?php get_i18n_navigation(get_page_slug(FALSE),0,1,I18N_SHOW_MENU'here-component-name'); ?>
I use machine translation. Forgive me my errors.
Reply
#4
thanks...

this get simple is a very good project...

submenu on the left side works fine...
only I need to change something in css...
i will work on it when i have a bit of time...

i looked at this document...
for migration problems...
i thought to work on local server before going on line...

http://get-simple.info/wiki/installation:migrating

can I simply copy all the main folder "get simple cms" with all the files and the folders placed inside?
then i will go in the main pannel administration and i change the site url directory...
Reply
#5
(2017-02-21, 00:09:20)andylorenz Wrote: i thought to work on local server before going on line...

http://get-simple.info/wiki/installation:migrating

can I simply copy all the main folder "get simple cms" with all the files and the folders placed inside?
then i will go in the main pannel administration and i change the site url directory...
As you can read here,
http://get-simple.info/wiki/installation...cal_server
If you developed your site in a local GetSimple installation but later want to publish it in the Web, you must know that it's not only uploading all files to the public server. It is recommended to do a new GetSimple install (the process will set the necessary file permissions), and then uploading your data, theme, plugins, etc.

You could also make a new installation, then upload everything over (except the root .htaccess, or edit it to set the correct rewritebase) and change the website url.
Reply
#6
thanks
ok i will follow the istructions when i will be ready

last question i have is the follow question:

can i install two get simple cms in the same server?

this because i thought to use it like a collection of files
a sort of secondary site inside a main site

so pheraps i need two separated menu
two separated links to the documents and soso..

so what happened if I download two time and put all the files in two separated folders?
can be it a mess?
Reply
#7
(2017-02-21, 23:41:05)andylorenz Wrote: can i install two get simple cms in the same server?

this because i thought to use it like a collection of files
a sort of secondary site inside a main site

so pheraps i need two separated menu
two separated links to the documents and soso..

so what happened if I download two time and put all the files in two separated folders?
can be it a mess?

You can have GS installed in any number of different folders and subfolders on the same server. Each one will be stand-alone and work independently of the others.
Reply
#8
this is what i thought and hope...
perfect
Reply
#9
andylorenz, pay attention
if you work with GetSimple on the local server and the path to the site is not straight (for example, site-name.com/demo1)
when transferring to the server will need to edit the file in the folder with .htaccess GetSimple

look at the bottom of the file:
Code:
# handle rewrites for fancy urls
<IfModule mod_rewrite.c>
    RewriteEngine on

    # Usually RewriteBase is just '/', but
    # replace it with your subdirectory path
    RewriteBase /demo1/

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
</IfModule>

important point RewriteBase

it is necessary to edit the file .htaccess when you move GS to another folder or Fancy URLs without this will stop working

few examples
if site on the local server site-name.com/demo/version1 then RewriteBase /demo/version1/
moved the site to a server in the root folder site-name.com then edit the file .htaccess RewriteBase /
I use machine translation. Forgive me my errors.
Reply




Users browsing this thread: 1 Guest(s)