When I add and I'm on page 2, for example, it loads a page and goes back to the first page. How can I prevent myself from being moved to the first page after the creation process?
Related
I have an issue with my Blazor Server. I have two components in the "Page" folder. The first one is "TimeLine.razor" and the second one is a "OrderSetup.razor". From the first one I want to navigate and open the second one. For this purpose I added #page "/ordersetup" directive to my "OrderSetup" component. Then inside the "TimeLine" I added a link(<a href="setup"..) When I click over the link, the content of the "OrderSetup" component add(merge) it self inside the "TimeLine" component content. I expected the "TimeLine" page to reload and to open only the "OrderSetup" content - not both contents in one after another in the TimeLine page...e.g.:
I'm making a SPA with vue.js and trying to have pdf's page show on its page. I can show pdf's page with vue-pdf, but it doesn't show again when page transits for once.
Pdf's page revives when I reload its page, but I don't want to reload pagaes because of SPA and its specification which doesn't allow reloads as much as possible.
Any help?
For example, I have a blog website, with a discover page that doesn't take any params. When you load page fetch hook calls API that randomly returns some article.
So my problem is when I'm already on the Discover page and I click discover in the Left bar I want the page to refresh.
:key="$route.fullPath" is not working for me because nothing is changing in the path.
Hi I am working on application built in vue. I have observed that whenever we route to new vue page from homepage(app page) using route, the contents of homepage are still visible in the next page such as heading i.e: new page loads with previous headings from homepage still visible. I want to completely open new vue page so that only contents of that page are visible(not the homepage or app page).please see below image for example
In above pics your can see that black header is common in every page. I want to open completely new page so that previous content don't show
It was done by hiding the div which contains the contents of the homepage and displaying the div which contains the contents of the desired page. I used below code to hide or show the div
document.getElementById("id").style="display:none;" // if I want to hide a div
document.getElementById("id").style="display:block;" // if I want to show a div
I neet to create registration/login popup.
The header component is on all pages.
I have login btn in header.
I have page /login/register with a slot BodyContentSlot-register
I don’t know how many components can be added to BodyContentSlot-register, but I need to click on the icon in the header to show the registration form in a modal window without going to the registration page. And show in a modal window all the components of this slot.
To achieve directly what you've described:
In the modal:
you need to make a call using CMS service to get page data (that calls backend for CMS page data) OR get the data if you've loaded it before (as an optimizaiton only)
display the slot's content you want to show, i.e. using cx-page-slot component statically in your modal and passing the position as an input
The tricky part is that this component gets from CmsService the slots of the current page, i.e. cart page (based on routing /cart), but not the page data you've loaded programatically in your modal. So you need to customize CmsService to return you the CMS data for specific slot of given page (register), even if it's not a part of current page data.