Welcome, Guest
Username Password: Remember me

Support Pagebreak plugin in jSeblod CCK
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Support Pagebreak plugin in jSeblod CCK

Support Pagebreak plugin in jSeblod CCK 1 year, 6 months ago #1

  • Loli
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 0
Hello,
How to make so that a plugin "pagebreak", worked in your editor?
Best regards,
Lolita

Re:Support Pagebreak plugin in jSeblod CCK 1 year, 6 months ago #2

  • SEBLOD - Bes
  • ( Admin )
  • OFFLINE
  • Administrator
  • Working on SEBLOD 2.0 GA
  • Posts: 3141
  • Karma: 97
Hi Loli,

Welcome on jSeblod CCK forums and thanks for your post.

It's difficult. The easy way is to use a custom template and add in this template a page system.

You must have a field which is display on page 1, a other field which is display on page 2 and...

The idea is to add a page variable to your article link to display or not a content.

//add this at the top of your template
$page = JRequest::getVar('page');

//Prepare the page link by using art_link value
if (strpos($jSeblod->content->art_link,"?") ){
$page_link = $jSeblod->content->art_link."&";
}else{
$page_link = $jSeblod->content->art_link."?";
}

//Build the link of the first page like this
<?php echo $page_link."&page=1"; ?>

//Build the link of the second page like this
<?php echo $jSeblod->content->art_link."&page=2"; ?>

...

//Before display the field value for the page 1
if ($page == 1 or !$page){
echo jSeblod->my_page_content_1->value
}

//Before display the field value for the page 2
if ($page == 2){
echo jSeblod->my_page_content_1->value
}

By using a group of fields (groupX field type), you will be able to do this page system totally automatically.

Best Regards
If you use SEBLOD CCK, please post a rating and a review at the Joomla! Extensions Directory. Thanks to you.!!"
SEBLOD Vimeo Channel: vimeo.com/channels/seblod
SHAPE YOUR SITE YOUR WAY
The following user(s) said Thank You: Loli

Re:Support Pagebreak plugin in jSeblod CCK 1 year, 6 months ago #3

  • Loli
  • ( User )
  • OFFLINE
  • Junior Boarder
  • Posts: 20
  • Karma: 0
Thank you very much. I Will try to realise it.
Your component gives great opportunities, it is magnificent.
Best regards,
Loli

Re: Support Pagebreak plugin in jSeblod CCK 3 weeks, 6 days ago #4

  • hozefa
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi,

I am using jseblod 1.8 and I also want to implement auto page break for some part of the webiste.

I am a newbie and the process explain above is very difficult to understand. How to utilize groupx field to achieve this?

Please explain it in more details that can be use by a simple person like me!

Thanks
Hozefa
  • Page:
  • 1
Time to create page: 0.18 seconds