[TYPO3-english] problems using specific content for different website usergroups

Luca Pavan - emmecubo S.r.l. l.pavan at emmecubo.it
Fri Mar 4 13:09:41 CET 2011


Il 04/03/2011 12.58, Dmitry Dulepov ha scritto:
>> i'm developing a typo3 website, and i've got a problem using different
>> contents for different user types: i created on storage folder the
>> website
>> usergroup "group_1" and the website usergroup "group_2", then the website
>> user "luca" and the website user "andrea". I associated luca on group
>> "group_1" and andrea on group_2.
...
>> Please help me solving this problem, it's a very important question.
> 
> To answer the question we also need to know how you display the content.
> Do you do that with pure TypoScript or markers/template or TemplaVoila?

Hi,
I use templaVoila with my template.
Here is the constant and setup:
CONSTANT:
# Setting link targets to nothing (no frames mode)
PAGE_TARGET = _blank
content.pageFrameObj =

# Limitation of picture widths in main content column:
styles.content.imgtext.maxW = 0
styles.content.loginform.pid = 91
# Making sure each line in image captions (of Image content elements)
# are applied to corresponding image number in the element:
styles.content.imgtext.captionSplit = 0
styles.content.imgtext.maxWInText = 0
styles.content.imgtext.maxWInText = 0
styles.content.imgtext.linkWrap.width = 800
#styles.content.imgtext.linkWrap.lightboxEnabled = 1

plugin.tt_news.displayList.image {
    file.maxW = 150
    file.maxH = 113
    imageLinkWrap = 1
    stdWrap.spaceAfter = 5

}

plugin.tt_news.firstImageIsPreview = 1
plugin.tt_news {
  displayList.subheader_stdWrap {
    stripHtml = 1
    #crop = 230 | ... | 1
    ifEmpty.field = bodytext
    #the more link is appended directly to the subheader
    #append = TEXT
    #append.data = register:newsMoreLink
    #append.wrap = <span class="news-list-morelink">asas|</span>

    append.if.isTrue.field = bodytext
    outerwrap = <p>|</p>
  }
}
plugin.tt_news.pid_list =
plugin.tt_news.singlePid = 114
plugin.tt_news.singleMaxW = 288
plugin.tt_news.singleMaxH = 0
plugin.tt_news.listMaxW = 150
plugin.tt_news.listMaxH = 113
plugin.tt_news.latestMaxW = 674
plugin.tt_news.latestMaxH = 0
plugin.tt_news.latestImageMode = crop

plugin.pmkshadowbox.useSizzle = 0
plugin.pmkshadowbox.tt_news.displayLatest.shadowboxEnable = 1
plugin.pmkshadowbox.tt_news.displayList.shadowboxEnable = 1
plugin.pmkshadowbox.tt_news.displayList.shadowboxWidth = 800
plugin.pmkshadowbox.tt_news.displayList.shadowboxHeight = 600
plugin.pmkshadowbox.adapter = jquery
plugin.pmkshadowbox.skinModificationDirectory =
EXT:pmkshadowbox/resources/skinModifications/web3/
plugin.pmkshadowbox.fallbackLanguage = it

plugin.rgmediaimages.height = 248
plugin.rgmediaimages.width = 330

plugin.rgmediaimages.foregroundColor = #000000
plugin.rgmediaimages.screenColor = #000000
plugin.rgmediaimages.highlightColor = #000000
plugin.rgmediaimages.backgroundColor = #FFFFFF

plugin.feadmin.fe_users.file.templateFile = fe_users*.tmpl
plugin.feadmin.fe_users.color1 = #CCCCCC
plugin.feadmin.fe_users.usergroupOverride = 9
plugin.feadmin.fe_users.wrap2 = Luca|Pavan
plugin.feadmin.fe_users.wrap1 = |
plugin.feadmin.fe_users.pid = 91
plugin.tx_srfeuserregister_pi1.allowMultipleUserGroupSelection = 1
plugin.tx_srfeuserregister_pi1.useLocalization = 1
plugin.tx_srfeuserregister_pi1.useLocalCountry = 1
plugin.tx_srfeuserregister_pi1.enableHTMLMail = 0
plugin.tx_srfeuserregister_pi1.enablePreviewRegister = 0
plugin.tx_srfeuserregister_pi1.siteName = Eismann portal
plugin.tx_srfeuserregister_pi1.email = l.pavan at emmecubo.it
plugin.tx_srfeuserregister_pi1.confirmInvitationPID = 0
plugin.tx_srfeuserregister_pi1.confirmPID = 0
plugin.tx_srfeuserregister_pi1.editPID = 0
plugin.tx_srfeuserregister_pi1.loginPID = 0
plugin.tx_srfeuserregister_pi1.linkToPID = 0
plugin.tx_srfeuserregister_pi1.registerPID = 0
plugin.tx_srfeuserregister_pi1.userGroupAfterConfirmation = 9
plugin.tx_srfeuserregister_pi1.pid = 0
plugin.tx_srfeuserregister_pi1.file.templateFile = user_reg*.html
plugin.tx_srfeuserregister_pi1.formFields = username, password, gender,
first_name, last_name, date_of_birth, email, address, city, zip,
telephone, fax, image

SETUP:
## Menu [Begin]
lib.subMenu = HMENU
lib.subMenu.entryLevel = 1
lib.subMenu.wrap = <ul>|</ul>
lib.subMenu.1 = TMENU
lib.subMenu.1.NO {
  allWrap = <li>|</li>
}
lib.subMenu.1.ACT = 1
lib.subMenu.1.ACT {
  allWrap = <li class="sel">|</li>
}
## Menu [End]

## Menu [Begin]
lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0
lib.mainMenu.wrap = <ul id="menu_1">|</ul>
lib.mainMenu.1 = TMENU
lib.mainMenu.1.NO {
  allWrap = <li>|</li>
}

lib.mainMenu.1.ACT = 1
lib.mainMenu.1.ACT {
  allWrap = <li class="sel">|</li>
}
## Menu [End]

config.spamProtectEmailAddresses = 1

page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

plugin.tt_news {
  displayList.image.noImage_stdWrap {
   /* cObject = IMAGE

  cObject {
    wrap =
    file = GIFBUILDER
    file {
      XY = {$plugin.tt_news.listMaxW},{$plugin.tt_news.listMaxH}
      backColor = #ffffff
      10 = TEXT
      10 {
        text = No image
        fontSize = 14
        niceText = 1
        fontColor = #000000
        offset = {$plugin.tt_news.listMaxW}/2-30,
{$plugin.tt_news.listMaxH}/2+4
      }
    }
  }*/
  }
  displayList.subheader_stdWrap {
    stripHtml = 1
    #crop = 230 | ... | 1
    ifEmpty.field = bodytext
    #the more link is appended directly to the subheader
    append = TEXT
    append.data = register:newsMoreLink
    append.wrap = <span class="news-list-morelink">|</span>

    append.if.isTrue.field = bodytext
    outerwrap = <div>|</div>
  }
  displaySingle {
    imageWrapIfAny = <div class="single-images"><div>|</div><div
class="clear"></div></div>
    imageCount = 10
    image >
    image.stdWrap.cObject = COA
    image.stdWrap.cObject {
      10 = IMAGE
      10.wrap = </div><div class="single-img">|
      10.file.import.data = TSFE:lastImageInfo|origFile
      10.file.width = 120c
      #10.file.height = 180c
      10.imageLinkWrap = 1
      10.imageLinkWrap {
        enable = 1
        typolink.parameter.stdWrap.cObject = IMG_RESOURCE
        typolink.parameter.stdWrap.cObject {
          file.import.data = TSFE:lastImageInfo|origFile
          file.maxW = 800
        }
        typolink.ATagParams (

rel="shadowbox[tt_news];options={handleLgImages:'drag',counterType:'skip',continuous:false,overlayColor:'#000000',overlayOpacity:0.50,displaydesc:true};"
        )
      }
    }
  }
  rgmediaimages {
    videoWrapIfAny.wrap = <div class="news-single-video">|</div>

    singleMedia.wrap = |

    #caption {
     # wrap = <p class="news-single-imgcaption"> | </p>
      #    trim=1
    #}
  }
}
config.htmlTag_langKey = it
config.metaCharset = utf-8
config.language = it
config.locale_all = it_IT
config.sys_language_uid = 0
plugin.tx_srfeuserregister_pi1._it_IT.languageCode.labelName =
overridingValue

Thank for hel me.

Luca


More information about the TYPO3-english mailing list