Archive for August, 2006

tt_news: hardcoded labels in locallang.xml

Written by newbie on Aug 18th, 2006 | Filed under: The Story, tt_news

I have been customising the tt_news for my site, but having some difficulty changing the hardcoded labels in locallang.xml

I can do this successfully…

plugin.tt_news {
_LOCAL_LANG.default

{
textCatLatest=Spoke:
textCat=Spoke:
more=more…
textRelatedByCategory=Other news from this Spoke:
altTextCatSelector=Display only Spoke:
catmenuHeader=NewsHub Spokes
}

}

Which changes those values…

Or I can do this successfully…

lib.leftnav < plugin.tt_news lib.leftnav {                          
code >code = CATMENU}

displayCatMenu {
catmenuHeader_stdWrap.wrap =

|

mode = nestedWraps

 # wrap for the complete “catmenu”
catmenu_stdWrap.space = 3 | 0
catmenu_stdWrap.wrap =

|

# wraps for active or inactive category links in the tree
catmenuItem_ACT_stdWrap.wrap = |
catmenuItem_NO_stdWrap.wrap = |

# wrap for level “n”
catmenuLevel1_stdWrap.wrap =

|

catmenuLevel2_stdWrap.wrap=

|

}
}
catmenuIconMode = -1
}

Which wraps them the way I want successfully…

But I cant work out to combine them. I am sure it is something simple, but I have tried a number of things, and nothing has worked yet.

:(


Work around for mixing “list” and “latest”

Written by newbie on Aug 18th, 2006 | Filed under: The Story, templavoila (TV), tt_news

I just didn’t bother - mixing them, that is.

I just used CSS to modify the display of ”latest” to give me a few different layouts, then used templavoila to map a couple of different content elements, and mixed those instead.

Seems “latest” and “list” when you are trying to limit to a category just won’t mix.


More on mixing “list” and “latest” in tt_news

Written by newbie on Aug 13th, 2006 | Filed under: The Story, tt_news

Yeah, it wasn’t a latest/list clash at all, it is definitely something to do with categories - I can’t actually select anything, have to leave the selection as “show all (don’t care)” with the lists.
So, Im not sure if it’s the selectDeselectCategories that is going to help, or another bugfix I noticed
0003844: “Show items with selected categories (AND)” does not work
that needs to be done. (Even though, for me, it is all selections, not only “AND”…)


tt_news - mixing “list” and “latest” elements

Written by newbie on Aug 12th, 2006 | Filed under: The Story, tt_news

I have been installing and configuring tt_news again today, and am having problems placing both latest and list on the same page. They are separate content elements, but list won’t appear.

The plugin is starting (as evidenced by the html), but no records are being called, and it isn’t even saying “there are no records”. The header of the second element shows, and then just the first two classes,with no content.

I am sure I have done some silly little thing, because I am fairly sure it showed “there is no file” first time around. Then I added a news item with this category, and everything disappeared.

I did find a reference to a bug in 1.4 indicating this was a problem in the past, so I wonder if I need to fix it up with the selectDeselectCategories as mentioned in the bugfix?


Using Templavoila, Flexible Content Elements to create columns, & repeatable FCEs

Written by newbie on Aug 7th, 2006 | Filed under: The Story, templavoila (TV)

Having worked out that the mapping had fallen off the content template that defined my 2 columns in the main content area (!), now the following error shows…

 WARNING: This container element has localization without inheritance enabled ( = 0). This is most likely a misconfiguration since the localization features of TemplaVoila does not support localized container fields in the native interface! Please inform the system administrator!

The email lists didnt provide the answer, but pointed me in the direction of Kasper’s Frontend Localization Guide.

After much scanning (after all, I haven’t gone into this at all yet) I came across this…

“Notice that container elements usually must have the “[All]” language set so they are rendered for all languages:…”

 So, Im looking in the right place … now if only I understood what it all meant :(

(Two days later…)

Ah .. the Data Structure needs to be edited to include the following <meta> information…

<?xml version=”1.0″ encoding=”iso-8859-1″ standalone=”yes” ?>
<T3DataStructure>

<meta type=”array”>

<langDisable type=”integer”>1</langDisable>

</meta>

<ROOT type=”array”>

BUT!
Best to leave it until you are finished playing with the DS/TO, because (as it is a manual adjustment) for every Typo3 version to date, it will be lost next time you alter the DS/TO in Templavoila!


Using tt_address

Written by newbie on Aug 1st, 2006 | Filed under: The Story

I know I haven’t written anything for ages .. I must go back and type up my entries (that are currently scrawled in a notebook).

But here is an interesting dilemma - I can’t find documentation for tt_address, and can’t work out how to insert data into the table!

Wonder how long it will take me to work out?  …

…(15 minutes later  … )

ahh! Good to know I’m not the only one who had problems working out how to use tt_address 

According to Vikram:

To insert data in tt_address do the following steps:
1. Login to BE
2. Create a (or go to your existing) SysFolder type page
3. In this page create a tt_address records

(Reference: http://lists.netfielders.de/pipermail/typo3-english/2005-August/009569.html)

:) Now I just have to get someone interested in writing an extension to deal with business/organisation addresses in a “yellow pages” mannerÂ