haverica wrote:Can anybody show me on an example how this xfields works. I sow same links here with the examples, but links are broken. Call me stupid or whatever but I just seems not to understand how it works and what is this xfields at all. I have some toughts about it. I would appriciate if someone can show me an example with the link.
Thank you very much,
O.
Check: you-website.com/path/to/cnr/index.php?mod=help
* ofcource change to your websites url and the path to cutenewsru

There is a part with info about XFields and more info.
Also, here is a quote:
Understanding XFields
With XFields, you can add custom fields to your CuteNews installation. These fields are like "Title", "Avatar URL", "Short Story" and "Full Story". You might say: "So, why is this addon so powerfull?". Well with this addon, CuteNews will be even more flexible.
For example: For a clan site, you need an page where all matches are displayed on. You might want to do this with CuteNews. Your table always need the same layout, so make XFields and use them in your templates. Now you can just make fields for "Enemy", "Server IP", etc.
Another example: If you're writing news posts about new games released, you could have a default place for screenshots, but don't want to put the HTML code in your news post everytime, you could use XFields. You might just put the screenshot code in your templates, and in your following news posts, just fill in the XField for the screenshot with the filename and it will show up as you did before, but a lot easier.
Final example: If you have a site, made in two languages and you just want to use one CuteNews news post in two languages, you could use XFields. Just make one or two multiline XFields and an title XField. Now use them in diffrent templates. In your site just use the diffrent templates, and you will get the posts in the proper language.
This addon was made by SMKiller2.
Creating and editing XFields
These are the fields that should be filled in when you edit or add a XField:
Name: The internal name the XField should use. This should be unique for each XField and is not displayed anywhere.
Description: The description showed when adding or editing news.
Category: Select the category of the news item where the XField should appear. If you select custom, another field appears where you can select multiple categories.
Type: Select the behavoir of the XField. You can shoose between three diffrent types.
Default: You will only get this field when you have selected either "Multi Line" or "Single Line" as type. You may enter a default value for the XField here.
Options: You will only get this field when you have selected "Dropdown Listbox" as type. You may enter all options that should appear in this field here. You cannot use two exacly the same options.
Optional: You will only get this checkbox when you have selected either "Multi Line" or "Single Line" as type. You can select whether the field is optional or not here.
Configuring Templates
You can use the values entered in the XFields in your templates, just use the following tags:
[xfvalue_NAME]: This will output the XField with the same name as provided in the tag as NAME.
eg. My current mood is: "[xfvalue_mood]".
Will display: My current mood is: "happy". When you entered it in the XField. But note that if the XField is optional and you haven't entered a value, it will show: My current mood is: "".
[xfgiven_NAME]...[/xfgiven_NAME]: This is only supported for optional XFields. It will only show the code between the tags if the XField is filled with a value. Otherwise it won't show anything.
[xfnotgiven_NAME]...[/xfnotgiven_NAME]: This is only supported for optional XFields. It will only show the code between the tags if the XField is empty. Otherwise it won't show anything.
eg. [xfgiven_mood] My current mood is: "[xfvalue_mood]". [/xfgiven_mood][xfnotgiven_mood]No mood today.[/xfnotgiven_mood]
Will display: My current mood is: "happy". When you entered "happy" in the XField. If you haven't entered anything in the XField, it will show "No mood today.".