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

Suggestion: Use marker to start autosentence

  • jrodgar
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 10 months ago #2521 by jrodgar
Hi!

How about adding a param "key" to the autosentence macro, so it will only take into account from that key onwards?

Example

I´m the title
I´m the date
I´m some forms
_key_
The real content is here

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

More
9 years 10 months ago #2524 by admin
Sorry,
your request seems very interesting but is not clear to me. The macro syntax is:
{autosentence m,M}
Automatic sentence generation from the component buffer (m and M are the minimun and the maximum length of the sentence to return)

Could you please, try to explain what "key" should do and how? Which content? Do you mean to get the value from a placeholder?

Thanks,
Luigi

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

  • jrodgar
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 10 months ago #2526 by jrodgar
Replied by jrodgar on topic Suggestion: Use marker to start autosentence
they key would work as an offset


imagine
{autosentece m,M,offset}

Where the component output is something like

2014/06/06 Search . Lorem ipsum....

Here, I would like to have the description as

Lorem ipsum...

Because the first part would be meaningless for me. So maybe I would like to have something like

{autosentence 90,120, 20}

So the macro only gets from "Lorem Ipsum" and later, but not the search

The problem with this approach is that the offset would need to be fixed and so it wouldn´t have a lot of flexibility. So the next logic improvement would be

{autosentence 90,120,<!--fromhere-->}

and I would modify my article template like

2014/06/06 Search .<!--fromhere--> Lorem ipsum....


Did I explain better? :)

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

More
9 years 10 months ago #2528 by admin
Yes,
now it's clear and is a good idea. I already wanted to improve this macro with a "class" or "id" to specify, as example, which <div or <p tag to consider, but this is an additional way I can consider too.

Thanks,
Luigi

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

More
9 years 10 months ago - 9 years 10 months ago #2590 by admin
Hi,
I'm just working to close new Tag Meta version and I'm dealing with this request. I have now realized that this is useless, because you can get the same result using two placeholders:
a={autosentence 10,500}
b={substr 15,500}${a}{/substr}

Kind regards,
Luigi
Last edit: 9 years 10 months ago by admin.

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

  • jrodgar
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 10 months ago #2591 by jrodgar
Replied by jrodgar on topic Suggestion: Use marker to start autosentence
Just for you to know, it was more a suggestion than a request :P but the point is that is not the same a fixed limit (substr 15), than starting from one point on. :)

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

Time to create page: 0.115 seconds