Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
subpage!
#1
I was trying to figure out how do I can display the sub-page contents of a parent page!
I have created 2 sub-pages under a parent page but I couldn't find anything in the website.
Do I need to do some extra coding for drop-down or something else?
or anyone tell me the code how do I can get sub-pages under a parent page!
Reply
#2
Builtin GS display menu function offers only a 1 lvl flat menu.
Use Mvlcek's i18n menu plugin, and you will get what you need.
Search for it in extend.
Addons: blue business theme, Online Visitors, Notepad
Reply
#3
Got some question about that:

I've got this menu structure:

- home (visible in menu)
- category (visible in menu)
-sub_page_1
-sub_page_2
....
-sub_page_n

-contact (visible in menu)
-etc. (visible in menu)

Now, when I go to page 'category' i want to see:

Code:
<p>some text<p>
<ul>
<li><a link to subpage1>sub-page1</a></li>
<li><a link to subpage2>sub-page2</a></li>
<li><a link to subpage3>sub-page3</a></li>
....
<li><a link to subpagen>sub-pagen</a></li>
</ul>

some txt. maby component

In words, I want to see list of all (children) sub pages with links to them.
I need function which I might use in page content.


and second thing:
Where can I find list of commends witch i can use in editor (like (% gallery name=thing %) )
I'm reading plugins .php files but that does not helping.

best regards!
Reply
#4
Take a look at this thread: http://get-simple.info/forum/topic/2034/...-category/

Which gives several alternatives to list the child pages.

-Rob A>
Reply
#5
grs84pl Wrote:In words, I want to see list of all (children) sub pages with links to them.
I need function which I might use in page content.

I18N plugin: For the top-level pages use:

<?php get_i18n_navigation(return_page_slug()); ?>

For the pages below the selected top-level page use:

<?php get_i18n_navigation(return_page_slug(),1,99); ?>

For more information see here.

grs84pl Wrote:and second thing:
Where can I find list of commends witch i can use in editor (like (% gallery name=thing %) )
I'm reading plugins .php files but that does not helping.

Each plugin has its own method of being included in a page. It just so happens that by now most of the plugins use the (% ... %) syntax, it's more or less standard now.
But there is no list, you have to look at the plugins' documentions.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#6
mvlcek Wrote:<?php get_i18n_navigation(return_page_slug(),1,99); ?>

This did the job Wink

mvlcek Wrote:But there is no list, you have to look at the plugins' documentions.
I would read doc's... And, in fact, I did read those pages, but I didn't uderstand them at first time.

I guess that if the documentation was written more like a manual (linux man pages) or like php manual (description, parameters, return values, usage), it would be is easier to learn to use.

Thanks for your interest in the subject and I am very pleasantly surprised response time
Reply
#7
grs84pl Wrote:I guess that if the documentation was written more like a manual (linux man pages) or like php manual (description, parameters, return values, usage), it would be is easier to learn to use.

I created a new topic http://get-simple.info/forum/topic/2079/...standards/ for this.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#8
mvlcek Wrote:I created a new topic http://get-simple.info/forum/topic/2079/...standards/ for this.

you are always ahead of mine ideas Smile
I was going to ask CC/Connie to update instructions and inform plugin devs to attach a howto/faw/readme file to plugin archive.

Devs websites are sometimes down, and it may become a problem if such situation extends.

You got a pretty easy situation, just dump a webpage with plugin's description, as html readme files tend to be the best ones, and pretty fast to create.
Addons: blue business theme, Online Visitors, Notepad
Reply
#9
Could I ask for Your's favore again?

Could You wrote me, how to make list of subpages of page where I am.

Got:

top
-1st_level
--2nd_level
--2nd_level
--2nd_level
---3rd_level
---3rd_level
---3rd_level
--2nd_level
---3rd_level
---3rd_level


I need to have one function to paste on each page to display only subpages (one level lower) of this specific one, where I am.


Please Help
Best Regards
Grzegorz

edit!
As I'm not lazzy I've made this:

Code:
<?php
$children = return_i18n_pages();
foreach ($children as $child){
    if ($child [url] == return_page_slug()){
        echo '<ul>';
        foreach ($child[children] as $slug){
            echo '<li>';
            get_i18n_link($slug);
            echo '</li>';
        }
        echo '</ul>';
    }
}
?>

I save it as new component, call it with DynPages on every page I need.

Maby it will be usefull for somebody.
Reply




Users browsing this thread: 1 Guest(s)