Pages

Custom page with recent topics - Pages

Custom page with recent topics

by Ted1982 » Fri Aug 14, 2020 1:44 pm

Hi,

Is it possible to include this extension in a new page?

I copied the code from 'recent_topics_body_topbottom.html' to a new custom page 'pages_recent.html' but that doesn't work. It will show a blank page.

Code: Select all

{# Use the space below to include external CSS and JS files
# Here are some example usages:
#
# local files relative to this template file (when stored inside phpBB's style directories):
# <!-- INCLUDEJS script.js -->
# <!-- INCLUDECSS style.css -->
#
# hosted on external sites:
# <!-- INCLUDEJS http://code.jquery.com/jquery-migrate-1.2.1.min.js -->
# <!-- INCLUDECSS https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css -->
#
# local files stored inside the Pages extension:
# <!-- INCLUDEJS @phpbb_pages/script.js -->
# <!-- INCLUDECSS @phpbb_pages/style.css -->
#
#}
<!-- INCLUDECSS @phpbb_pages/pages_controller.css -->
<!-- INCLUDE overall_header.html -->

<div class="panel">
	<div class="inner">
		<h2 class="pages-title">{PAGE_TITLE}</h2>
		<div class="content pages-content">
			{PAGE_CONTENT}
			Code from recent_topics_body_topbottom.html
		</div>
		<!-- EVENT phpbb_pages_after_page_content -->
	</div>
</div>

<!-- INCLUDE overall_footer.html -->
Any ideas?

Edit:
I tried to add this line

Code: Select all

<!-- INCLUDE @paybas/recenttopics/styles/all/template/recent_topics_body_topbottom.html -->
But then I get the message: "There are no registered paths for namespace "paybas" in "pages_recent.html" at line 19."

With this code, no error but only a blank page.

Code: Select all

<!-- INCLUDE @paybas_recenttopics/recent_topics_body_topbottom.html -->
<!-- INCLUDECSS @paybas_recenttopics/recenttopics.css -->
Ted1982
Registered User
Posts: 13
Joined: Sat Feb 08, 2020 1:41 pm
Contact:

Re: Custom page with recent topics

by MattF » Fri Aug 14, 2020 3:43 pm

No, it is not.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5265
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact:

Re: Custom page with recent topics

by Ted1982 » Fri Aug 14, 2020 4:10 pm

Okay, but this extension does have a built-in function to view all recent topics on a special page.
can view all recent topics on a special page /app.php/rt (as of 2.2.7)
But this URL-suffix also shows a blank page. Perhaps this is a bug in the latest version. I will ask that in the forum of this extension.

->

When I put the include below in other template files like overall_footer.html it works as well?

Code: Select all

<!-- INCLUDE @paybas_recenttopics/recent_topics_body_topbottom.html -->
Ted1982
Registered User
Posts: 13
Joined: Sat Feb 08, 2020 1:41 pm
Contact: