[SOLVED] Ideas needed: Creating Joomla Articles as blog/directory with user related values from profiles

8 years 2 months ago #277821 by krileon

but the substituted field values may not change. they should always show the values from original user who is assigned to this article. i don't get how the subsitution has to look like.

Then your usages of the substitutions is fine. The [FIELD_NAME] usages for example will replace with the actual field value of the user and will store that value with the article. You do not need to use the {cb}{/cb} usage in CB Auto Actions. Really though you need to be able to turn off user substitution parsing so it can store the substitution that will later parse by CB Content Bot, but there's currently no way to do this.

- these joomla articles should work like pages for profiles (for comparison: fb profile and fb fan pages).

That's entirely up to you to setup. The action is just creating a Joomla article.

- every article/page has the same given layout and is generated during (or after?) registration automatically.

Acting on the after registration trigger will do this.

- user(owner) can change placeholders in profile edit.

This won't work due to the user substitution issue explained above.

- all other users should be able to see the article with the owner's values.

This will always be the case.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: uncleron12345

Please Log in to join the conversation.

8 years 2 months ago #277824 by uncleron12345
thanks for detailed explaination, kyle :)
I think I understood now.


That means I'm currently able to:

- create the article with substitutions. these substitutions will store the values in the article and user can not change the values by editing the substituted fields in profile edit.

My next idea:
What happens when there's a trigger with on after user profile update. and the article is generated at this time?
In this case the substitutions will store the values from user's edits, every time the user updates his profile, or?

Is there a way to delete the older existing article when user changes his profile?

Please Log in to join the conversation.

8 years 2 months ago #277830 by krileon

- create the article with substitutions. these substitutions will store the values in the article and user can not change the values by editing the substituted fields in profile edit.

Correct.

What happens when there's a trigger with on after user profile update. and the article is generated at this time?
In this case the substitutions will store the values from user's edits, every time the user updates his profile, or?

If you act on the after profile update then it'd create a new article entirely. To update an existing article you'd need to directly modify it using queries in a Query action. So that could be an option for keeping it up to date until I've added the parameter to toggle off user substitutions (unsure at this time if I can even do this while still using other substitution APIs).

Is there a way to delete the older existing article when user changes his profile?

With a direct database query using a Query action, yes.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: uncleron12345

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.601 seconds

Facebook Twitter LinkedIn