Suggestion: Use marker to start autosentence
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 5 months ago #2592
by admin
Maybe this can help:
{substr start,length}text{/substr}
Returns the portion of string specified by the start and length parameters. String are zero-based (i.e. first char has index 0)
{substr 1,3}Joomla{/substr} => oom
Please Log in or Create an account to join the conversation.
-
jrodgar
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 34
-
Thank you received: 0
-
-
10 years 5 months ago #2593
by jrodgar
Yes, yes, I understand it perfectly, is only that depending on the component output the real content could start at different offsets.
Just my two cents
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 5 months ago #2594
by admin
This is related to the second scenario:
{autosentence 90,120,<!--fromhere-->}
This will be solved with a new (different) macro which extracts the html from a div or span with a certain class or id. Something like the jquery $( "div.demo-container" ).html();
Not sure it's easy to add a custom <!--fromhere--> comment in third part components...
Please Log in or Create an account to join the conversation.
-
jrodgar
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 34
-
Thank you received: 0
-
-
10 years 5 months ago #2595
by jrodgar
Depending on the component, you could make an override.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 5 months ago #2596
by admin
It could be an additional option for the macro selector.
Thanks,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.166 seconds