BOLT: listing_records not working? - bolt-cms

I am trying to display 24 products in frontend on this page: http://stage.softoven.com/meubleshouse/categories/lighting
I have set the listing_records: 24 in the content type of products but it doesn't seem to work accordingly. Any idea why?

Okay I got it. It was not the contenttypes.yml file but it was taxonomy.yml file where I had to update listing_records: 24.
I hope it will help someone in future.

Related

Cakephp 3 Element file is missing

I have the problem that my navbar.ctp element isnt loading i only get the error message from cakephp
Element file "Element/navbar.ctp" is missing.
My code in my default layout of cakephp (because i want the navbar in all "views")
<?php
echo $this->element('navbar');
?>
and my element is in Layout/Element/navbar.ctp
So i dont unterstand why it says me that my element is missing.
Do i have anything missing?
I hope someone could help me with the problem. I dont have much information, because its not complicated per se.
I think you have the file in the wrong folder.
Check the cookbook:
Elements live in the src/Template/Element/ folder, and have the .ctp
filename extension. They are output using the element method of the
view:
echo $this->element('helpbox');
Source: https://book.cakephp.org/3/en/views.html#elements

Scape data after login rvest

Please help me.
I'm trying to scrape the split table but actually I can't do and I don't understand why.
This is the url:
https://www.strava.com/activities/1983801964
This is the credential to login:
email=trytest#tiscali.it
password=12345678
This is my code:
pgsession<-html_session("https://www.strava.com/login")
pgform<-html_form(pgsession)[[1]]
filled_form<-set_values(pgform, email="trytest#tiscali.it", password="12345678")
submit_form(pgsession, filled_form)
page<-jump_to(pgsession, "https://www.strava.com/activities/1983801964")
page%>%html_nodes(xpath='//*[#id="contents"]')
And I get {xml_nodeset (0)}
I tried everything, also
page%>%html_nodes("body")%>%html_text()
But I can't get this information, please help me!!
Thanks in advance
I cannot find the split data in the HTML. Therefore, it may not be possible to scrape the splits from the HTML like this.
Alternatively, you can download the raw activity data. Link: https://support.strava.com/hc/en-us/articles/216918437-Exporting-your-Data-and-Bulk-Export
Edit: you may also be able to use this method to download Strava data: https://scottpdawson.com/export-strava-workout-data/
Edit 2: The splits are contained in a DIV called "splits-container". But, the source HTML is likely modified by javascript after the page is loaded. This means you will probably not be able to scrape the data without running the javascript first. Hope this helps.

Can you restrict meta reload?

so I'm trying to use meta reload to update my website (using the code below) and I was wondering if it was possible to make it reload once after opening the page.
<meta http-equiv="refresh" content="3" >
Why, because looking at a website that refreshes every 3 seconds is really annoying to look at. If you can help, thank you.
#David's comment (original post)
To store values without files and within the webpage. I suggest you encrypt the data because it is visible in the developers console 'local storage'
function holdArray(array){
localStorage.setItem("holdArray", array);
return true;
}
function releaseArray(){
if(localStorage.hasOwnProperty('holdArray')){
return localStorage.getItem("holdArray");
}
}
Set data
holdArray(JSON.stringify(yourvariable));
Get data
let storage = releaseArray();
All I had to do to make it update once when the page was loaded was change index.html to index.php
Thank you with all the help you guys gave me, but this is all I ended up needing to do. I still very much appreciate the effort though.

"Template:!" output from imported MediaWiki template (Infobox)

I am quite new to Mediawiki and am trying to get infoboxes work.
I managed to get a simple one working but am now trying to get the 'Infobox video game' one working.
I am getting the following errors:
Template:!- style="" Template:! Developer(s) || Peter Harrap, Shaun Hollingworth Template:!- style="background: #F0F0F0;" Template:! Publisher(s) || Gremlin Graphics
The page is www.retroresource.co.uk/mediawiki
To try and solve this myself I have been to http://en.wikipedia.org/wiki/Special:Export
and entered in:
Template:Infobox
and
Template:Infobox video game
into the box, ticked all boxes, done a find a replace on replace text/plain with CONTENT_FORMAT_TEXT
I have imported the file through special imports.
I have also copied in the default CSS MediaWiki:Common.css into my own wiki.
What am I missing?
Thanks
You are missing Template:!. MediaWiki 1.24 removed the need for that template, but you are still on version 1.23
You can either update your wiki to 1.24 or add this in Template:!:
<onlyinclude>|</onlyinclude>

How to properly create a pdf with fpdf?

I have some code to try to create a single PDF document but i can't do it.
code :
<%# language="vbscript"%>
<!--#include file="fpdf.asp"-->
<%
if Request.form("test") <> "" Then
Set pdf=CreateJsObject("FPDF")
pdf.CreatePDF()
pdf.SetPath("fpdf/")
pdf.SetFont "Arial","",16
pdf.Open()
pdf.AddPage()
pdf.Cell 40,10,"Hello Word!"
pdf.Close()
pdf.Output("list.pdf","T")
End If
%>
So, (dont mind with the request.form for execute..lol)
when i click the button i get :
"FPDF error: Unable to create output file: list.pdf"
I've tried some sites for help and done alot of things and searched here on stack and found some useful things but nothing directed to this ...
Any help would be appreciated ! I can try to answer any questions you may have about the code or something else.
Also, if you have another solution for creating PDF's with classic ASP, please lemme know (free or very low price)
Thanks for your attention !
I've specified the path of Output to a VIRTUAL location and it Works great !
Thanks Every one for your help !
Best Regards