sâmbătă, 10 decembrie 2011

TYPO3: realurl

realurl & danp_realurlconfigurator  or easy configuration of RealUrl

  1. Install the extension: Realurl Configurator (danp_realurlconfigurator).
  2. If the installation was successful, the ADMIN TOOLS will have a new module: Realurlconf. Click it!
  3. In the top-right list select: Base-Configuration.
  4. Click on the bold link Try to create from 2).
  5. Click on the bold link Copy default content (attention overrides) from 2).
  6. Go to Extension Manager module from ADMIN TOOLS.
  7. Find the extension RealURL: speaking paths for TYPO3 (realurl) and click on it.
  8. In the Configuration section alter these:
    1. Path to configuration file: change from 'typo3conf/realurlconf.php' to 'typo3conf/realurlconf.php'.
    2. Enable automatic configuration: uncheck.  

realurl &multi-lingual content

Suppose that Realurl Configurator extension is already installed.
Suppose that we have to additional languages: Russian with id 1 and English with id 2.
  1. Go to the Realurlconf module from ADMIN TOOLS.
  2. In the top-right list select: Edit RealUrl-Config.
  3. In the nice online editor change these:
    1. In the preVars array find the array which starts with
      array(
      'GETvar' => 'L',
      change the valueMap array to
      'valueMap' => array(
      'ru'=>'1',
      'en'=>'2',
      )
  4. Click Save button.

realurl misc

To avoid problematic situations in the future you can add to the pagePath array this
'rootpage_id' => 1,
Where the id 1must be changed to the id of the root page of the site (where the main template is located).

Sometimes RealUrl appends to the url the tail '.html'. To disable this feature add (or change it if already exists) to the fileName array this
'defaultToHTMLsuffixOnPrev'=>0,



    sâmbătă, 30 iulie 2011

    TYPO3: cps_tcatree

    Tree view does not display any nodes except the root node (Version 0.2.2).

    Thirst of all at least one of these fields must be present
    $GLOBALS['TCA'][$this->fieldConfig['foreign_table']]['ctrl']['default_sortby']
    $GLOBALS['TCA'][$this->fieldConfig['foreign_table']]['ctrl']['sortby']
    
    Secondly the the table field which contains of name/title the records must be named title.

    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.