Good evening.
I was wanting to add the value of the relational field to the k_page_title/ k_page_name in the db_persist_form to achieve the unique page generation as in the CSV module.
Relational field:
Values in relational field are:
Coal
Clinkers, etc
Now from a DBF i want to be able to create a clonable page as:
This is needed because the DBF will create pages like:
Coal_ASD
Clinker_ASD
With the unique page generation (as in CSV Importer Module) implemented, I am unable to create the cloned page. The k_page_name (using the code above) is set to the "_name" value but not something like Coal_name or Clinker_name (name keeps on changing and are common to coal/clinker etc).
Any help would be appreciated.
Regards
I was wanting to add the value of the relational field to the k_page_title/ k_page_name in the db_persist_form to achieve the unique page generation as in the CSV module.
Relational field:
- Code: Select all
<cms:editable name='noncoalcommodity' label="Non-coal Commodity" type='relation' masterpage='noncoal/commodity/commodity.php' has='one' />
Values in relational field are:
Coal
Clinkers, etc
Now from a DBF i want to be able to create a clonable page as:
- Code: Select all
<cms:db_persist_form
_invalidate_cache='0'
_auto_title='0'
k_page_title="<cms:show frm_k_page_title />"
k_page_name="<cms:show k_page_title />_<cms:related_pages 'noncoalcommodity'><cms:show k_page_id /></cms:related_pages>"
/>
This is needed because the DBF will create pages like:
Coal_ASD
Clinker_ASD
With the unique page generation (as in CSV Importer Module) implemented, I am unable to create the cloned page. The k_page_name (using the code above) is set to the "_name" value but not something like Coal_name or Clinker_name (name keeps on changing and are common to coal/clinker etc).
Any help would be appreciated.
Regards