Results 1 to 19 of 19

Thread: insert tags in catalog notify (in the body text)

  1. #1
    New user
    Join Date
    02-01-10.
    Posts
    24

    Default insert tags in catalog notify (in the body text)

    Hello:

    I´m trying to show in the body text a field called "codigo".

    User properties works ok, for instead I wrote:

    {{user::firstname}} {{user::lastname}} de la empresa {{user::company}} has sent a notification for a catalog: ##catalog##.

    but I would like to add a field call "codigo" (code of the item)

    código: is there any tag to write here?

    Best regards

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: insert tags in catalog notify (in the body text)

    Usually it's {{catalog::fieldnamegoeshere}}

  3. #3
    New user
    Join Date
    02-01-10.
    Posts
    24

    Default Re: insert tags in catalog notify (in the body text)

    thanks, but if it is a field created inside tl_catalog_fields and inside "name", how can it be written?

    {{catalog::catalog_fieldsxxxxxx}} or

    {{catalog_fields::codigo}} doesn´t work

    ...

  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: insert tags in catalog notify (in the body text)

    Didn't I just type catalog? Don't try to be a smart cookie now. I've also provided examples where you have to enter is in the module, both below the subject AND the text, so its pretty clear that you have to use {{catalog::fieldname}}. Spoon feeding is always messy...

    This is the Notify text I used for my property client:

    Code:
    --- ##catalog## ---
    A user has sent a notification for an item in the above catalog. 
    
    Link to the catalog item:
    ##link##
    
    --- Property Summary ---
    {{catalog::webcode}} {{catalog::title}}
    R {{catalog::price}}.00
    {{catalog::description}}
    You can also use the inserttags in the subject line
    Code:
    Property Notification: {{catalog::webcode}} {{catalog::title}}

  5. #5
    New user
    Join Date
    02-01-10.
    Posts
    24

    Default Re: insert tags in catalog notify (in the body text)

    well then I missing something, I created a catalog tablename "games".
    I tried "tl_games" and "cat_games" for if the name of table could change anything.

    I created fields (column name) called:
    title
    price
    webcode

    In the body text of catalog notify i wrote as you said:
    {{catalog::title}}
    {{catalog:rice}}
    {{catalog::webcode}}

    and nothing appears in the e-mail. I tried a lot of different combinations... but nothing so, is there a tricky?

    ##catalog## and {{user::firstname}} {{user::lastname}} works so I don´t understand why {{catalog::webcode}} doesn´t.

    Thanks

  6. #6
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: insert tags in catalog notify (in the body text)

    the inserttag doesn't need to know your tablename, as its already pre-selected the catalog at the top of the catalog notify module. Therefore only the fieldname is required. of course your fieldname must MATCH the one you defined in your catalog, e.g. in your case your catalog field would be {{catalog::codig}} (remember the double everything)

    remember special characters are not allowed in a fieldname (é, etc).

    If this still doesnt' work, then there must be something else wrong... Did you install all the dependencies and are you using the catalog notify module on a READER page?

  7. #7
    New user
    Join Date
    02-01-10.
    Posts
    24

    Default Re: insert tags in catalog notify (in the body text)

    then there must be something else wrong... I think all instance are installed and the module is in a reader page...
    attached 3 images with:

    sql
    reader page
    catalog notify

    perhaps you can see the error,


    thanks a lot

  8. #8
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: insert tags in catalog notify (in the body text)

    no attachements...

  9. #9
    New user
    Join Date
    02-01-10.
    Posts
    24

    Default Re: insert tags in catalog notify (in the body text)

    [attachment=0:3ryn9qpu]phpmyadmin.jpg[/attachment:3ryn9qpu][attachment=1:3ryn9qpu]reader page.jpg[/attachment:3ryn9qpu][attachment=2:3ryn9qpu]catalog notify.jpg[/attachment:3ryn9qpu]

  10. #10
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: insert tags in catalog notify (in the body text)

    This is a quick fix. The Repository doesn't work well with the {{.

    Go to your ModuleCatalog and the replaceCatalogTags() function.
    Then move your cursor between {{ (2 places) and delete the illegal character inserted by the repository system.

  11. #11
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: insert tags in catalog notify (in the body text)

    I've updated the repository as well... but if an update of the ModuleCatalog.php doesn't work, then manually edit it yourself.

  12. #12
    New user
    Join Date
    02-01-10.
    Posts
    24

    Default Re: insert tags in catalog notify (in the body text)

    The update works.

    Thanks a lot.

  13. #13
    New user
    Join Date
    03-24-10.
    Posts
    13

    Default Re: insert tags in catalog notify (in the body text)

    Hi,
    is it possible to use catalog insert-tags also in reader template or in other parts?
    or it works only in catalog notify's body text email?
    Thanks

  14. #14
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: insert tags in catalog notify (in the body text)

    Hi gianko82,
    inserttags already work in all templates from contao...

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  15. #15
    New user
    Join Date
    05-24-11.
    Location
    Nitra, Slovakia
    Posts
    6

    Default Re: insert tags in catalog notify (in the body text)

    Hello MacKP,
    does it mean that catalog insert tags can be used as input values in form generator fields?

    Thanks

  16. #16
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: insert tags in catalog notify (in the body text)

    I mean all Inserttags. But the catalog has no inserttags. What you need is something else. There is an extension for post ore get variables over the url (like item=blabla&field2=dada). That variables can be used in the Form than.
    I don't know the name atm... I think you can find it ;-)

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  17. #17
    New user
    Join Date
    05-24-11.
    Location
    Nitra, Slovakia
    Posts
    6

    Default Re: insert tags in catalog notify (in the body text)

    I suppose you are refering to Inputvar extension. I will have to look how it works and how i am able to pass attributes from catalog to URL.
    Thanks

  18. #18
    New user
    Join Date
    03-24-10.
    Posts
    13

    Default Re: insert tags in catalog notify (in the body text)

    Why can't I use the catalog tags in a list module's condition??
    example:
    I am in a list module, published in a catalog reader page. I want to list the things that satisfy these conditions:
    published = 1 AND alias = "{{catalog::alias}}"

    is it possible?

  19. #19
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: insert tags in catalog notify (in the body text)

    You can't use inserttags like this, because there are no inserttags like that possible... what else should i write?
    In the condition from the list-module you can use your rows like 'rowname_of_your_alias'.
    In the Template you can easy use the Array....

    btw your condition is realy strange.. do you want 1 item in a list? ore what do you want to do?
    Maybe you must do it in the template what you try... but it looks like a job for an other catalog module like catalog-related ore catalog-referenz

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •