[TYPO3-templavoila] (no subject)
Ron Hall
ron at busynoggin.com
Fri Mar 16 18:14:00 CET 2007
Thank you both. Both suggestions put me on the right trail to the
solution.
David, the code you gave me worked but I would have to put it in for
each user. As per Dmitry's suggestion I looked in TSconfig and found
out how to make it a default for users. I was able to do it by
putting this code into my localconf.php file:
// Added by Ron Hall to give default datastructure for all users
t3lib_extMgm::addUserTSConfig('TCAdefaults.pages.tx_templavoila_ds =
4');
It assigns a data structure of id=4 to every new page. I intend to
use this to simplify the TV template selection for some of my less
sophisticated users. I will write up the full technique in my blog in
a couple of weeks (assuming after testing it works as expected)
Ron Hall
Dallas, Texas
blog: "Adventures in TYPO3" at www.busynoggin.com/blog
web: www.busynoggin.com
On Mar 16, 2007, at 9:45 AM, David Lanier wrote:
> ah yes, I was just digging through those things last night too.
> Here is
> an example snippet for User TSConfig
>
> TCAdefaults.pages.tx_templavoila_ds = 15
>
> note: it has to go into User TSConfig, not Page TSConfig. I saw a
> note
> on the english list that to do it sitewide or per-page (say, assigning
> it to the root page) you would have to write a little extension to
> enable that.
>
> cheers,
> -david
>
> Dmitry Dulepov wrote:
>> Hi!
>>
>> Ron Hall wrote:
>>> Is there a way to have TYPO3 write a value into the DS field of
>>> every
>>> new page.
>>>
>>> For instance, if I had a data structure with an id of 15 and I
>>> wanted
>>> every page to have that DS assigned to it by default, how would I do
>>> that?
>>
>> You can look to TSConfig. It describes how to set default values for
>> fields.
>>
> _______________________________________________
> TYPO3-project-templavoila mailing list
> TYPO3-project-templavoila at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-
> templavoila
More information about the TYPO3-project-templavoila
mailing list