jensclas.. help is always appreciated no matter if its misunderstood or not...
I try explain a little bit..
Dont want a dropdown menu.. XOOPS have this method on pagenav class, the fact its smartsection (i think all the modules that uses pagination) uses this piece of code to know how many pages does an article have
explode('[pagebreak]', $body);
In this case $body is the variable that contains the full text of a smartsection article. Explode searchs for the separator (pagebreak) in the $body data and returns a number.. this is the number of pages.
Ok.. what i want is to use pagebreak but naming each one with pagebreak name1 or pagebreak name=name1 and how to code this so i can pass the data to pagenav class renderSelect function and build the select with those names.
No matter if i have to write the code.. but dont know php enough to find a function that can search for the pagebreaks, look at the name of EACH ONE, and pass those names.
1. why multimenu can help me to guess my "problem"? 2.- Where i can find those how to docs? the page seems to be in french (think so.. :)) and its refered to furniture?..
Hi, im using XOOPS 2.0.14 and smartsection 2.1 and i was wondering if i can use the navigational dropdown list feature of the pagenav XOOPS class but using names instead of numbers. Im think of use something like pagebreak=name1 or pagebreak name=name1. So i generate a dropdown menu with names.
try to explain.
The code of item.php of /modules/smartsection create an instance of the object pagenav like this
if ($itemObj->pagescount() > 0) { include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; if ($item_page_id == -1) ($item_page_id = 0); $pagenav = new XoopsPageNav($itemObj->pagescount(), 1, $item_page_id, 'page', 'itemid=' . $itemObj->itemid()); $xoopsTpl->assign('pagenav', $pagenav->renderNav()); }
To show the navigational numbers of pagination uses the rendernav function
This code generates a dropdown with numbers.. But i want to generate a select box with names! (example: 1.- Introduction, 2.- First Impression.. etc)
but dont know how the xoopscode "pagebrek" works so i dont know how to try to write some code to capture those pagebreaks names and generate the dropdown.
Hi, im using smartsection and dont know if i can assign a name to each pagebreak o pagewrap so users can select by name (ie select box) and not by the number of the page.
Hi.. i need a module that can make the management work on certain tables.
I mean, im going to create some tables on the db and want a module to use as the interface to manage those tables (insert, erase, etc...) like dadabik php script for example..
Hi, can u recommend me a good module to write tutorials and reviews?..
i used 2.0.14 and want if possible pagination with select box (ability to paginate and add a title to each page) and spotlight block that supports images for each article.
I have smartsection installed but i think have a problem with XOOPS 2.0.14 (i have problems indeed with it and have recently upgrade).