Jump to content
Sign in to follow this  
dayplays

Кнопка с перенаправлением

Recommended Posts

dayplays Открываешь шаблон forums > front > forums > index > indexButtons

Находишь

		<ul class='ipsToolList ipsToolList_horizontal ipsClearfix ipsPos_right'>

Ниже добавляешь

<li class='ipsToolList_primaryAction'>
	{{if $currentCategory OR $currentCategory = \IPS\downloads\Category::theOnlyNode()}}
		{{if \IPS\Member::loggedIn()->group['idm_bulk_submit']}}
			<a class="ipsButton ipsButton_medium ipsButton_important ipsButton_fullWidth" href="{url="app=downloads&module=downloads&controller=submit&category={$currentCategory->id}&_new=1" seoTemplate="downloads_submit"}" data-ipsDialog data-ipsDialog-title='{lang="submit_a_file"}' data-ipsDialog-size='narrow'>
				{lang="submit_a_file"}
			</a>
		{{else}}
			<a class="ipsButton ipsButton_medium ipsButton_important ipsButton_fullWidth" href="{url="app=downloads&module=downloads&controller=submit&category={$currentCategory->id}&_new=1&do=submit" seoTemplate="downloads_submit"}">
				{lang="submit_a_file"}
			</a>
		{{endif}}
	{{else}}
		<a class="ipsButton ipsButton_medium ipsButton_important ipsButton_fullWidth" href="{url="app=downloads&module=downloads&controller=submit&_new=1" seoTemplate="downloads_submit"}" data-ipsDialog data-ipsDialog-title='{lang="submit_a_file"}' data-ipsDialog-size='narrow'>
			{lang="submit_a_file"}
		</a>
	{{endif}}
</li>

 

Share this post


Link to post
Share on other sites
1 час назад, dayplays сказал:

А как привязать к тому или иному разделу

Попробуй сменить "&_new=1" на нужный тебе ID категории, хотя не уверен.

Share this post


Link to post
Share on other sites

dayplays А смысл апать? Видно же, что задача не простая и нужна помощь специалиста на платной основе.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×