This post was updated on .
I have a customization designed to remove our OFF TOPIC forum from the topics view. It looks like this:
<override_macro name="app_topic_filter" requires="node_page,servlet"> <n.if.equal value1="[n.page_node.id/]" value2="[n.root_node.id/]"> <then> <n.separate> <text1.hide_null.overridden /> <separator>and</separator> <text2.page_node.exclude_parent_filter parent_id="1389381" /> </n.separate> </then> <else.overridden/> </n.if.equal> </override_macro> I want to add another forum to that rule. The id is 4128906. Greg or anyone, could you help me? I tried this: <override_macro name="app_topic_filter" requires="node_page,servlet"> <n.if.equal value1="[n.page_node.id/]" value2="[n.root_node.id/]"> <then> <n.separate> <text1.hide_null.overridden /> <separator>and</separator> <text2.page_node.exclude_parent_filter parent_id="1389381 4128906" /> </n.separate> </then> <else.overridden/> </n.if.equal> </override_macro> and this: <override_macro name="app_topic_filter" requires="node_page,servlet"> <n.if.equal value1="[n.page_node.id/]" value2="[n.root_node.id/]"> <then> <n.separate> <text1.hide_null.overridden /> <separator>and</separator> <text2.page_node.exclude_parent_filter parent_id="1389381, 4128906" /> </n.separate> </then> <else.overridden/> </n.if.equal> </override_macro> and this: <override_macro name="app_topic_filter" requires="node_page,servlet"> <n.if.equal value1="[n.page_node.id/]" value2="[n.root_node.id/]"> <then> <n.separate> <text1.hide_null.overridden /> <separator>and</separator> <text2.page_node.exclude_parent_filter parent_id="1389381" /> </n.separate> <n.separate> <text1.hide_null.overridden /> <separator>and</separator> <text2.page_node.exclude_parent_filter parent_id="4128906" /> </n.separate> </then> <else.overridden/> </n.if.equal> </override_macro> All cause errors.
HTTPS Please!
|
I'd pay someone for this solution. Does paid support exist anymore? How much is one month?
HTTPS Please!
|
Administrator
|
Hi Harvey,
We have forwarded your request to our technical team and it will be replied in a few days. |
Administrator
|
In reply to this post by Harvey
<override_macro name="app_topic_filter" requires="node_page,servlet"> <n.if.equal value1="[n.page_node.id/]" value2="[n.root_node.id/]"> <then> <n.separate> <text1.hide_null.overridden /> <separator>and</separator> <text2.page_node.> <n.separate separator=" and "> <text1.exclude_parent_filter parent_id="1389381" /> <text2.exclude_parent_filter parent_id="4128906" /> </n.separate> </text2.page_node.> </n.separate> </then> <else.overridden/> </n.if.equal> </override_macro> |
Thank you.
HTTPS Please!
|
This post was updated on .
There is one more macrosI need to edit to finish this. In both cases I want to add another sub forum to the function.
This one: <override_macro name="last_post_column" parameters="title,width,white_space"> <n.table_column> <head> <td class="[n.column_default_border/] nowrap last-post-column" style="[n.width_style.width/]"> <n.default. to="[t]Last Post[/t]"><n.title/></n.default.> </td> </head> <body> <n.current_node.> <td class="[n.column_default_border/] weak-color"> <n.if.either condition1="[n.is_post/]" condition2="[n.has_topics/]"> <then> <n.last_node.> <table class="avatar-table"> <tr> <n.last_post_column_start/> <td style="width:100%;padding:.0 .3em;border:none;[n.style. property='white-space'][n.white_space/][/n.style.]"> <n.smart_post_link.url> <text.when_created.short_format/> </n.smart_post_link.url> <span class="weak-color nowrap" style="padding-left:.2em;"> <t>by<br/><t.author.owner.name truncate="20"/></t> </span> </td> </tr> </table> </n.last_node.> </then> <else> <span style="padding-left:.4em"> <t>Empty</t> </span> </else> </n.if.either> </td> </n.current_node.> </body> </n.table_column> </override_macro> I would like to hid this data, by showing June 1 2018 at midnight for the date in last post and have it not be a link. This is the sub forum I don't want to show most recent post data for anywhere on the site: 4128906 That is our politics forum. Some members really want it but I'd rather keep it out of view as much as possible.
HTTPS Please!
|
Maybe there is an easier way to do this.
I want the sub forum 4128906 only to be viewable to members of that forum.
HTTPS Please!
|
Greg did you delete your response?
I turned on Smart Application pages it didn't seem to help. It is a sub app second level. Should I move it to the top?
HTTPS Please!
|
I moved it to the top level and it works. Thanks.
It's kind of cool that many of the features added under Extras and Addons were originally requests that Hugo build for me. :)
HTTPS Please!
|
In reply to this post by Harvey
I did, because I read your post more closely and thought that it probably didn't apply. Glad it appeared to help! Perhaps you had better re-post your subscription copy, because it sounds as if it's related to an issue that I've been testing on my GregHelp forum, but have allowed to slip.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted. |
Basically the private invisible forum thing, something Hugo built for me several years ago, is now available with a check box. You are right it only works if the forum is at the top level.
I didn't notice any slowing of the forum yet.
HTTPS Please!
|
Free forum by Nabble | Edit this page |