duminică, 29 mai 2011

TYPO3: Miscellaneous

Copyright notice with current year

H1, H2 si Typo3

Nu știu cît este de adevărat, dar cei care se ocupă de optimizarea pentru motoarele de căutare a paginilor web consideră că tag-urile H1 și H2 sînt foarte importante pentru Google și în plus tag-ul H1 trebuie apară doar o singură dată în pagina web, el fiind rezervat pentru titlul paginii.
Implicit în TYPO3 cîmpurile Header ale elementelor de conținut sînt încapsulate în tag-ul H1, respectiv dacă avem mai multe elemente de conținut pe pagină avem mai multe tag-uri H1.
Următoarea linie de TypoScript (plasată în secțiunea constants) face ca titlurile elementelor de conținut să fie plasate în tag-uri de tip H2.

content.defaultHeaderType = 2

TYPO3: tt_news & realurl

LIST & SINGLE on the same page

Add News content element to the page you want to mix the LIST and SINGLE view mode. You can change plugin configuration how you want except the What to display setting (found on General Settings tab); from the What to display list, select Defined by TypoScript.

On the same page create an extension template with the following setup

# clear the code field
plugin.tt_news.code >
plugin.tt_news.code = LIST
# prevent indexing of the LIST view
config.index_enable = 0

[globalVar = GP:tx_ttnews|tt_news > 0]
plugin.tt_news.code = SINGLE
# enable indexing of the SINGLE view
config.index_enable = 1
[global]

News Category + News ID in the URL

It is possible to change the URL for news to look like those from BBC News without extra PHP coding. It is enought to change the configuration of the RealURL.

'article' => array(
  array => (
    'GETvar' => 'tx_ttnews[tt_news]',
    'lookUpTable' => array(
      'table' => 'tt_news, tt_news_cat, tt_news_cat_mm',
      'id_field' => 'uid_local',
      'alias_field' => 'CONCAT(tt_news_cat.title," ",uid_local)',
      'addWhereClause' => ' AND NOT tt_news.deleted AND tt_news.uid = uid_local AND tt_news_cat.uid = uid_foreign',
      'useUniqueCache' => 1,
      'useUniqueCache_conf' => array(
        'strtolower' => 1,
        'spaceCharacter' => '-',
      ),
    ),
  ),
),

marți, 26 aprilie 2011

TYPO3: Erori

DAM


Meta record could not be inserted: Attempt to insert a record on page 'Media' (35) from table 'tx_dam' without permissions. Or non-existing page.

Numărul 35 semnifică id-ul Folder-ului Media. Mesajul apare în cazul cînd un utilizator BE nefind admin încearcă să încarce un fișier prin Browse for records / TYPO3 Element Browser / Upload. Una din cauze poate fi faptul că utilizatorul cu pricina nu are montat acest Folder. Se rezolvă montînd Folder-ul Media:
  • Fie la utilizatorul cu pricina prin User / Mounts and Workspaces / Mount from groups: / DB Mounts:
  • Fie la unul din grupurile părinte ale utilizatorului prin Mounts and Workspaces / DB Mounts: , iar apoi bifarea la utilizator a opțiunii Mounts and Workspaces / Mount from groups: / DB Mounts:

Sau poate: Tables (listing): și Tables (modify):  de bifat Media.

Pentru utilizatorii non admin fișierele încărcate nu sînt indexate automat.

În lista Allowed excludefields: trebuie bifate următoarele opțiuni:
  • Media: File name
  • Media: File path
  • Media: File type

BE

No such workspace defined


În setările utilizatorului sau grupului căruia aparține trebuie de bifat Edit Live (Online) din pagina Mounts and Workspaces.

TemplaVoila

Your user settings don't allow creating, moving or removing elements from this page.

In setarile utilizatorului, in Allowed excludefields: trebuie de bifat Page: Content (tx_templavoila_flex).

Newly created translation of a content element is moved Non-used elements



In the user or group settings on Access Lists page check all the languages from the Limit to languages group.