× Here you can get community support related to Tag Meta.

Suggestion: Use marker to start autosentence

More
9 years 9 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
  • Junior Member
More
9 years 9 months ago #2593 by jrodgar
Replied by jrodgar on topic Suggestion: Use marker to start autosentence
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.

More
9 years 9 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
  • Junior Member
More
9 years 9 months ago #2595 by jrodgar
Replied by jrodgar on topic Suggestion: Use marker to start autosentence
Depending on the component, you could make an override.

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

More
9 years 9 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.101 seconds