Russian TYPO3 community Форум больше не используется. Присоединяйтесь к каналу #community-ru в Slack for TYPO3 community  

Вернуться   Russian TYPO3 community > Обсуждение общих технических вопросов > Общие вопросы

Ответ
 
Опции темы Опции просмотра
Старый 27.08.2006, 13:50   #1
norn
Новенький
 
Регистрация: 14.08.2006
Адрес: Санкт-Петербург
Сообщений: 28
По умолчанию chcnewscon - не формируеются ссылки, только текстовый список

Никак не могу понять в чем дело, к сожалению Тупо3 я зняю не очень сильно Но пришлось что-то делать самому...

Итак не могу понять как заставить правильно работать расширение chcnewscon, после установки все что нужно функционирует - создание темы форума из редактора новостей, отображение в синглньюс списка тем в отслеживаемой конференции - но к моему сожалению этот список не соправаждается ссылками. В шаблоне, который я подключаю из конфига, прилагающегося к chcnewscon есть маркер

###COMMENTS###

он и отображает список тем в указанной конференции.
Так же к этому расширению прилагаются константы и сетап в файлах из папочки static

constats.txt
Код:
###
# These are the default TS-constants for the extension "chcnewscon" 
##

plugin.chcnewscon {
    # cat=plugin.CHC_News_Con//89; type=text; label= CHC_Forum Add Paramters: these parameters will be added to all links and form-urls in CHC_Forum
  chcAddParams = tx_ttnews[tt_news],tx_ttnews[backPid]


    # cat=plugin.CHC_News_Con/file/80; type=file[html,htm,tmpl,txt]; label= HTML Template-File for News with Comments: this template contains a "SINGLE"(news) part with a new marker ###COMMENTS###. The "SINGLE_RECORD_INSERT" part is also changed, this part is used for the news single-view displayed above the forum. The default template is based on the css-styled tt_news template.
  file.templateFile = EXT:chcnewscon/res/tt_news_v2_forum_tmpl.html
    
    # cat=plugin.CHC_News_Con//82; type=int+; label= CHC_Forum Pid : The pid of the page that contains the forum and the news single-view (this is the page that should open, after you clicked on the "more Comments..." link.)
  chcForumPid = 0
  
    # cat=plugin.CHC_News_Con//84; type=int+; label= CHC_Forum Category ID: This chc_forum category will be assigned to new conferences related to tt_news-articles
  chcForumCatUid = 0
  
    # cat=plugin.CHC_News_Con//95; type=int+; label= CHC_Forum Limit: limits the amount of displayed posts in the news Single-view
  chcForumLimit = 4   
 
}
setup.txt
Код:
# the following parameters will be added to all links and form-urls in chcForum
plugin.tx_chcforum_pi1 {
  chcAddParams = {$plugin.chcnewscon.chcAddParams}
}
plugin.tt_news {
	templateFile = {$plugin.chcnewscon.file.templateFile}

	displaySingle {
		# the pid of the page that contains the forum and the news single-view
		chcForumPid = {$plugin.chcnewscon.chcForumPid}
		
		# this forum category will be assigned to new conferences related to tt_news-articles
		chcForumCatUid = {$plugin.chcnewscon.chcForumCatUid}
		
		# limit the amount of displayed posts
		chcForumLimit = {$plugin.chcnewscon.chcForumLimit}
		
		# wrap for the header of a thread
		chcForumThread_stdWrap.wrap = <li> |</li>
		
		# thread headline
		chcForumThread = %s by: %s - %s
		
		# wrap for the thread subject
		chcForumThreadSubject_stdWrap.crop = 40|...
		
		# time formating for the post time
		chcForumPostTime_stdWrap.strftime = %d.%m.%y %H:%M
		
		# text for the link to the complete comment listing
		chcForumLinkText = more Comments...
		
		# wrap for this link
		chcForumLinkText_stdWrap.wrap = <p>|</p>
		
		# wrap for the complete comments block
		chcForumComments_stdWrap.wrap = <ul>|</ul>
	}  
}
Я устанавливаю этот сетап и константы в основной шаблон, он у меня пока единственный, но ситуация не меняется.

Может кто поможет?

да, забыл написать что новости 2.4.0, а Typo3 4.0.1
и еще, в константах я устанавливал номер категории и системной папки...

Последний раз редактировалось norn; 27.08.2006 в 14:19
norn вне форума   Ответить с цитированием
Ответ


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB code is Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Часовой пояс GMT +4, время: 05:09.


Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot

Хостинг и техническая поддержка: TYPO3 Лаборатория