- Posts: 3
COMMUNITY FORUM
UberPageBreak, introtext and fulltext
- flygo
-
Topic Author
- Offline
- New Member
Less
More
14 years 7 months ago #88962
by flygo
UberPageBreak, introtext and fulltext was created by flygo
hi all,I have a long article, first I use "readmore" button to split the article into "introtext" and "fulltext". Then I use "pagebreak" split the article into two pages. I found that the "table of content" shows just between of the "introtext" and "fulltext". When I go to the page 2, the "introtext" from the whole article still shows at the top of page two.How can "uberpagebreak" plugin split the "whole" article, ignor the "introtext" and "fulltext", into two part?joomla 1.5.20, K2 2.4.1, uberpagebreak 1.0, jce 1.5.6.
Please Log in or Create an account to join the conversation.
- Doc Chaos
-
- Offline
- Junior Member
Less
More
- Posts: 23
14 years 7 months ago #88963
by Doc Chaos
Replied by Doc Chaos on topic UberPageBreak, introtext and fulltext
I'm working on this myself, I had this solved once before but the K2Joom forum is no longer available so I can't remember how I accomplished it o.O
Maybe Simon can remember ...
Maybe Simon can remember ...
Please Log in or Create an account to join the conversation.
- flygo
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
14 years 7 months ago #88964
by flygo
Replied by flygo on topic UberPageBreak, introtext and fulltext
oops..
try your best to remember..please
Doc Chaos said:I'm working on this myself, I had this solved once before but the K2Joom forum is no longer available so I can't remember how I accomplished it o.O
Maybe Simon can remember ...
try your best to remember..please
Doc Chaos said:I'm working on this myself, I had this solved once before but the K2Joom forum is no longer available so I can't remember how I accomplished it o.O
Maybe Simon can remember ...
Please Log in or Create an account to join the conversation.
- flygo
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
14 years 7 months ago #88965
by flygo
Replied by flygo on topic UberPageBreak, introtext and fulltext
anybody help
Please Log in or Create an account to join the conversation.
- Doc Chaos
-
- Offline
- Junior Member
Less
More
- Posts: 23
14 years 7 months ago #88966
by Doc Chaos
Replied by Doc Chaos on topic UberPageBreak, introtext and fulltext
It's not a fix but this might help a little bit ...
community.getk2.org/forum/topics/uberpagebreak-tip
flygo said:anybody help
community.getk2.org/forum/topics/uberpagebreak-tip
flygo said:anybody help
Please Log in or Create an account to join the conversation.
- Doc Chaos
-
- Offline
- Junior Member
Less
More
- Posts: 23
14 years 7 months ago #88967
by Doc Chaos
Replied by Doc Chaos on topic UberPageBreak, introtext and fulltext
Sorry I don't have much time to post this work around but here's a *fix* for your problem ... I feel like I'm always the one troubleshooting PageBreaks in K2 o.O ... anyway. We will hack UberPageBreak to get this going ...
OPEN *ROOT*/plugins/content/UberPageBreak.php @ around line 70
FIND ...
$row->text = $row->fulltext;
... and REPLACE WITH ...
$row->text = ''.$row->introtext.'
'.$row->fulltext;
Because this site sucks here is an image ...
OPEN *ROOT*/plugins/content/UberPageBreak/tmpl/List/css/template.css
... AND ...
OPEN *ROOT*/plugins/content/UberPageBreak/tmpl/Tabs/css/template.css
... AND any other templates you may have added.
ADD THIS ...
div.itemBody div.itemIntroText { display:none; } div.itemFullText div.itemIntroText { display:block; }
... to bottom of all files.
There might be a better way but this is the one I coded in my sleep so you can either use it or write a better solution ;)
OPEN *ROOT*/plugins/content/UberPageBreak.php @ around line 70
FIND ...
$row->text = $row->fulltext;
... and REPLACE WITH ...
$row->text = ''.$row->introtext.'
'.$row->fulltext;
Because this site sucks here is an image ...
OPEN *ROOT*/plugins/content/UberPageBreak/tmpl/List/css/template.css
... AND ...
OPEN *ROOT*/plugins/content/UberPageBreak/tmpl/Tabs/css/template.css
... AND any other templates you may have added.
ADD THIS ...
div.itemBody div.itemIntroText { display:none; } div.itemFullText div.itemIntroText { display:block; }
... to bottom of all files.
There might be a better way but this is the one I coded in my sleep so you can either use it or write a better solution ;)
Please Log in or Create an account to join the conversation.