Calling a blog item

All Quick 'n Easy Web Builder support issues that are not covered in the forums below.
Post Reply
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Calling a blog item

Post by alex4orly »

In the bog object, there are two options
1) To load a page from the project, or
2) To provide a URL, like this for example : https://squadron-125.org.il/viewadobe.p ... ipur40.pdf

How can I add a dynamic 2nd argument to the url, it is the user name who logged in, so I can't set it to a fixed value
But let's say - I have it in a PHP Session variable

How?

Cheers
User avatar
Pablo
Site Admin
Posts: 3918
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Calling a blog item

Post by Pablo »

Maybe this will work?

Code: Select all

https://squadron-125.org.il/viewadobe.php?pdffile=<?php $_SESSION['username'] ?>.pdf
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Calling a blog item

Post by alex4orly »

No, That's not what I mean.
In the meantime, I found out that I can't use the session variable, I need to get the name out of a cookie

So, I need to have something like this:

https://squadron-125.org.il/viewadobe.p ... r=username;
But, the username is retrieved from a cookie. IT is 2 different arguments I need to pass.

In the Windows WB, I recall being able to have 2-3 events chained together - but I don't seem to be able to do it in QAEWB, or can I ?

Thank you
User avatar
Pablo
Site Admin
Posts: 3918
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Calling a blog item

Post by Pablo »

Events in QWB work the same as in WB.
You can add multiple events to an object.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Calling a blog item

Post by alex4orly »

OK, I tried to add the following:

event-1 : a javascript function
event-2 : window.reload(true);
event-3 : Another javascript - which redirects to the next web page

Is this correct?

I still prefer the option of passing two arguments to the URL, if possible with a php call from a cookie - but how?

Thanks
User avatar
Pablo
Site Admin
Posts: 3918
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Calling a blog item

Post by Pablo »

I do not think these actions can used together.
window.reload(true) will reload the page so everything after that will be ignored.

Note that this is unrelated to QWB, Events and JavaScript are standard browser functionality.
alex4orly
Posts: 321
Joined: Thu Jul 23, 2020 9:34 am

Re: Calling a blog item

Post by alex4orly »

So, is it ok to just skip 2nd call?
I know it is not related to WB, just thought I can get some help

Cheers
User avatar
Pablo
Site Admin
Posts: 3918
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Calling a blog item

Post by Pablo »

Did you try?
Post Reply