Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

root pattern based on custom profile property
Last Post 10/07/2013 1:38 PM by Peter Donker. 4 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Maxime Larcelet
New Member
New Member
Posts:2


--
09/11/2013 5:07 PM
Hi,

I'm testing DMX before buying.

I have a custom property (named "groupe") in my users profiles.

My DMX tree is :

dmx_root
|__folder1
|__A
|__B
|__admin

the "groupe" property is set to A, B or admin. The root pattern of the DMX module is set to "[Profile:groupe]".

The problem is that it's working well for my admin user ; but for other users, the root is not set to the proper sub-folder.

What did I miss ?

Tx a lot in advance.

Maxime
Maxime Larcelet
New Member
New Member
Posts:2


--
09/11/2013 5:10 PM
info : i first thought that my "groupe" property was accessible only by admin ; so i edited the DMX template to display the [Profile:groupe] token. result is that the groupe appears correctly (so non-admin users access the "groupe" poperty) but the root is not set correctly according to the pattern...
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/16/2013 4:45 PM
Have you tried debugging this by adding that token to the HTML output? That way you can see if the problem is in the token or in DMX's folder creation logic. Let me know what the token actually returns.

Peter
Sandra Marcon
New Member
New Member
Posts:1


--
09/16/2013 5:05 PM
Hi, tx for your answer.

That's exactly what i tried : the HTML output of DMX displays the token correctly.

Here is a sample of my custom template :

ViewCollection.hml :
************************************************************

    [subtemplate|BreadCrumb.html|breadcrumbs]



[entry:title] - [Profile:groupe]




Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
10/07/2013 1:38 PM
Then I don't know how it can happen. The root of a specific module is calculated on the fly and then cached by user and DMX module. So it all happens the first time the user lands on the page. It should immediately have that group in the querystring or it won't work.

Peter
You are not authorized to post a reply.