99 Posts
SimonD
7 years ago
3
Topic

Hello,

I'm working in a small links manager.

I've created a content type - called 'File' - with 2 fields: a 'Text' one and a 'Upload file' one.

I've created another content type - called 'Document' - with a GroupX field related to the 'File' content type, so that admin can add many files in the article.

I've carefully read the GroupX tutorial (https://www.seblod.com/resources/extensions/plug-ins/group-x-field) and took care to create all my fields (in parent and child content type) with unlock storage, not to use introtext as storage for the GroupX field and to store the child content type fields in a column named as follow: Custom/Article/name_of_groupx_column[name_of_field]

I would like to add a link to the 'Text' field of the child content type to download the file.

I've tried to add an html typo to the 'Text' field like this: <a href="/$cck->getValue('upload_file_name');">*value*</a>

It doesn't work while in the tutorial mentioned above it is said that any typography will be applied.

I'm thinking that it is because, the 'Text' field is inside a child content type called by a GroupX field.

Should I use another syntax?

Regards

Get a VIP membership
1283 Posts
Bucklash
7 years ago
1
Level 1

Hi

Have you tried position override in the parent content type?

calling-field-x-and-group-x-content-in-an-override

Bucklash

99 Posts
SimonD
7 years ago
0
Level 2

Hi Bucklash,

Thank you for your reply.

I'm newbie with Seblod. It seems it's time for me to understand what is a position override and how it is working.

While searching the forum, I've found this topic related to my question:

https://www.seblod.com/community/forums/fields-plug-ins/get-the-value-s-of-a-fieldx-by-using-html-typography

Pulsarinformatique suggested to use code pack plugin.

What do you think? Have you tried this method?

Regards

1283 Posts
Bucklash
7 years ago
0
Level 1

Hi

Have you tried position override in the parent content type?

calling-field-x-and-group-x-content-in-an-override

Bucklash

Get a Book for SEBLOD