- Posts: 128
COMMUNITY FORUM
"Read more" link in sub-category description
- Django
-
Topic Author
- Offline
- Premium Member
Less
More
10 years 1 month ago - 10 years 1 month ago #142164
by Django
"Read more" link in sub-category description was created by Django
Hi
In my sub-categories descriptions, the link "Read more" is only displayed at the end of the text, not after the "Introtext word limit".
No problem in the main/root categories.
Even if I insert a link "Read more" in JCE, I just get an horizontal line in frontend, and the K2 link "Read more" is still at the end of all the text.
???
In my sub-categories descriptions, the link "Read more" is only displayed at the end of the text, not after the "Introtext word limit".
No problem in the main/root categories.
Even if I insert a link "Read more" in JCE, I just get an horizontal line in frontend, and the K2 link "Read more" is still at the end of all the text.
???
Last edit: 10 years 1 month ago by Django.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 1 month ago #142172
by Krikor Boghossian
Replied by Krikor Boghossian on topic "Read more" link in sub-category description
This is a template issue.
You need to locate the read more button and move it directly under the introtext.
You need to locate the read more button and move it directly under the introtext.
Please Log in or Create an account to join the conversation.
- Django
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 128
10 years 1 month ago - 10 years 1 month ago #142197
by Django
Replied by Django on topic "Read more" link in sub-category description
Tested with 3 templates : same problem.
The parameter "Introtext word limit" in K2 doesn't work for categories descriptions, but only for the items in category blogs.
The parameter "Introtext word limit" in K2 doesn't work for categories descriptions, but only for the items in category blogs.
Last edit: 10 years 1 month ago by Django.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 1 month ago #142233
by Krikor Boghossian
Replied by Krikor Boghossian on topic "Read more" link in sub-category description
The category description cannot have a read more link.
Even if it did it would have to be in the template override with a simple JS check.
Even if it did it would have to be in the template override with a simple JS check.
Please Log in or Create an account to join the conversation.
- Django
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 128
10 years 1 month ago - 10 years 1 month ago #142238
by Django
This possibility to have an "Introtext word limit" for the category description would be useful for me.
Replied by Django on topic "Read more" link in sub-category description
On my new website, it has. But only at the end of the description text of the category. Not after the "Introtext word limit".The category description cannot have a read more link.
Can you explain me this "simple JS check" please ?it would have to be in the template override with a simple JS check.
This possibility to have an "Introtext word limit" for the category description would be useful for me.
Last edit: 10 years 1 month ago by Django.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 1 month ago #142255
by Krikor Boghossian
Replied by Krikor Boghossian on topic "Read more" link in sub-category description
The simple js would be a simple toggle button.
That would hide/ show the excess height of the category's description.
That would hide/ show the excess height of the category's description.
Please Log in or Create an account to join the conversation.
- Django
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 128
10 years 1 month ago #142258
by Django
Replied by Django on topic "Read more" link in sub-category description
I have no idea how to do that ( I often work on HTML and CSS, but I'm not a coder ).
And it seems complicate...
And it seems complicate...
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 1 month ago #142282
by Krikor Boghossian
Replied by Krikor Boghossian on topic "Read more" link in sub-category description
It 's not really. It CSS/ HTML basically.
css-tricks.com/snippets/jquery/animate-heightwidth-to-auto/
and a simpler method would be to simply swap some classes.
One with a fixed narrow height and one with height: auto.
This can be done with the addClass() / toggleClass() funtions.
css-tricks.com/snippets/jquery/animate-heightwidth-to-auto/
and a simpler method would be to simply swap some classes.
One with a fixed narrow height and one with height: auto.
This can be done with the addClass() / toggleClass() funtions.
Please Log in or Create an account to join the conversation.