Jahia Dev Forum > Create link/page...

0 (0 Good)
0 (0 Bad)

Create link/page options

by  mabouchacra »  2011/06/07 20:43

Hi there

I have page field in one of my container. There are a lot of usefull options such as "create a new page", "link to an existing Jahia page", etc. 
My question is about the option "Don't create Jahia page". What's its purpose? I thought that it was to enable the creation of link without any page linked to it. Basically just like a smallText. So if the user wants to have in his template a field that allows him to put either a link or a smalltext, then we just had to use the page type. Thus if he wants to display a link on the page, then he'll have to use the option "Create a Jahia page", and if he just wants to display a smallText, then he'll use the option "Don't create Jahia page".

You are probably guessing what is the purpose of that. So imagine you have a list of members and some of them (the "important" ones) have a page with their details but the others don't. Instead of having two field in your container a smalltext and a page, we would just have a page and the user choose if he wants to create a page or not.

But I guess it's wrong as I just figured out that the option "Don't create Jahia page" is not working that way. It's just creating a blank field in my template as we can't specify a title when using this option. 
So, what's its purpose?

Cheers,
Marc.

  (mabouchacra)

Number of messages  44
Registration date
0 (0 Good)
0 (0 Bad)

Re: Create link/page options

by  trenaud »  2011/06/07 20:43

Hi,

Well, this is one of the most byzantine concept of this great product! I have met very few people on Earth able to explain it to me! They did it maybe half a dozen times in the last 4 years but it still remains a mystery to me. Anyway, if one of these guys who will recognize themselves can read me, please correct me if I am wrong but:

To make a long story very short:

Basically, you should just not really care about it. This option is confusing, indeed, but must be displayed.

The R&D team of Jahia promised me it will disappear with the new version to come, the 6.5, that's great because everybody is asking me the same question for years! I know they tried several time to fix that issue, but it is far from being trivial to fix it. For now, please just ignore it.

Tristan

  • Re: Create link/page options
    2011/07/08 14:39

    trenaud <p> Hi,<br /> <br /> Well, this is one of the most byzantine concept of this great product! I have met very few people on Earth able to explain it to me! They did it maybe half a dozen times in the last 4 years but it still remains a mystery to me. Anyway, if one of these guys who will recognize themselves can read me, please correct me if I am wrong but:<br /> <br /> To make a long story very short:<br /> <br /> Basically, you should just not really care about it. This option is confusing, indeed, but must be displayed.<br /> <br /> The R&amp;D team of Jahia promised me it will disappear with the new version to come, the 6.5, that&#39;s great because everybody is asking me the same question for years! I know they tried several time to fix that issue, but it is far from being trivial to fix it. For now, please just ignore it.<br /> <br /> Tristan</p>

  • Number of messages  71
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: Create link/page options

    by  pap@commaro.com »  2011/06/07 20:43

    Hello,

    field values in Jahia are stored in the jahia_fields_data DB table, but page fields are different because they also create entries in the jahia_pages_data DB table and value_jahia_fields_data correspond to id_jahia_pages_data.

    Now, sometimes people have container definitions, where the page field is just one of several fields and as page fields are optional on default, clicking on the page field in the edit engine should not force the user to create a page or a link, so therefore there is a "Don't create Jahia page" option. When this checkbox is clicked, then we do not create an entry in jahia_page_data, so also the text entered is not saved (as for page fields this text is not saved in value_jahia_fields_data, but we store the link to id_jahia_pages_data there).

    I guess for your usecase you will need to have two fields in your container. 

    Hope this was understandable.

    Regards,
    Benjamin

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page