How to different current page view with pagebreaks in templ?

More
10 years 8 months ago #45454 by pabro
Hi,

i am using pagebreakes for some items. In item template (*.php) I want to show some content (fields and so on) only if view is „show all pages“ or start page of item. (For example: header image of item, show only if current view is page 1 or full item view.)

Is there a way to different the page status of current view of item? So I could use this for „if construct“ of php …

Thank you!

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #45456 by ggppdk
Hello

which plugin are you using to show article 's table of contents

- Content - Flexibreak
- OR: Content - Pagebreak (Joomla)

?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #45457 by pabro
Thank for reply!

I am using PageBreakMyJspace:
extensions.joomla.org/extensions ... tabs/20479

Joomla: 2.5

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #45461 by ggppdk
Hello

maybe ask the author of the plugin ?

i don't have any knowledge of the inner works of this plugin


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #45467 by pabro
I just thought it could exist a variable or so on of joomla or flexicontent system ...

Now I check via strpos() if „/page-“ exist in item url . It works :)

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #45469 by ggppdk
Hello

i understand now what you want to do:

proper way should be this:
Code:
$limitstart = JRequest::getInt('limitstart', 0); $is_first_page = $limitstart == 0;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.381 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline