11 years ago
Topic

Good day all,

Version 2.5.2 of plugin SD Field Concat (available from the SD Plugins store) has been released and introduces a new feature. Here is a description of the feature as talen from the plugin overview page:


Getting Any Column Value From #__content (++ V2.5.2)

This is a new feature introduced in Version 2.5.2 of the plugin. There is now a NEW field selector in the list of fields to concatenate, and it's syntax is as follows:

@colname(field_name)

Where 'colname' is the name of any column in the #__content table, and 'field_name' is the name of any field IN YOUR CONTENT TYPE FORM who's value you want to use as the ID for the id column of #__content.

For example, let's say you have (inside your form) a select dynamic field called 'my_articles' which lists articles form your content table using their ID for the value and their title as the select label. Doing this:

@alias(my_articles)

Is going to search the #__content table, find the row with the ID who's value matches the selected record in your select dynamic field, and return the 'alias' column of that row as the concatenation value.

Likewise, this:

@created(my_articles)

Will fetch the alias of that same record.

Now, what if you already KNOW the ID of the article you want to grab a certain column from in #__content and you don't want to just build a new field to grab the ID from? Simple, you have the choice of pushing the ID value straight into the brackets as follows:

@title(23)

This will fetch the title of the article who's ID is 23.

@catid(54)

Will fetch the catid column for the article with ID 54

What to expect in the future? Soon you will be able to get the value of ANY cck field from ANY article using the above method, and not just columns inside of #__content.


I must give credit to Viktor Iwan for having the balls to hack my plugin and add similar functionality for himself. Had he not raised the bar, this change would never have seen it into the plugin. THANK YOU Viktor.


Kind regards,
Simon

Get a Book for SEBLOD
151 Posts
pixelpixel
11 years ago
2
Level 1

Hi Simon,


i have a question about the next auto increment functionality. The old syntax  <content> does not work anymore and i couldn`t find the new syntax . I read your documentation but for me its not clear how to use it. Could you please help me out?


Kind regards

pixelneco

11 years ago
1
Level 2

Hello Pixelneco,


Thank you so much for the heads up on this issue. Upon further investigation it was found that I had called the path to the increments.ini file incorrectly after various code patches. I have since fixed the issue and released version 2.5.3 of the plugin on my product page: http://www.seblod.com/products/2191


You may now use the <content> syntax you are used to, where you may replace 'content' with the name of ANY table in your J! database. You can get the next auto increment of any table, not just the content table.


I trust you find this update and bug fix to your satisfaction and hopefully it's not too late!


Kind regards,

Simon

151 Posts
pixelpixel
11 years ago
0
Level 3

Hi Simon,


thanks a lot, i have downloaded the new version and it works perfect! Now i can make my article-alias bulletproof again yuuuuhhuuu :) Great Plugin, great benefit...Appreciated!


Best regards

pixelneco

Get a VIP membership