I’m trying anything I can to make the artist mini-site “separate but pulling the same data”… knowing that I can “API” from one app to another is interesting… but then I need a new app for each artist… which will cost a bob or two…
well… i did try that, but i wasn’t sure how to set the thing… and my “coder” said things like “that’s not how the internet works” … but what does she know??
Ultimately they all pass something pretty to a page and it does the underlying query. Rather than pass a whole bunch of ugly parameters that identify the resource.
What we want to avoid doing is looping bubble on the page loads, as then bad things happen. Hence we must check that the slug exists or we will just go round in a loop.
Also… you can’t debug this, as you then can’t get to the slug name you just get the debug bit.
I actually don’t think we are too far off a less hacky solution, we are just transferring the responsibility of setting the page thing from Bubble to the Programmer. If we could find a way to get the final part of the URL back as an :extract then it would be a lot tidier.
@NigelG So we at last have a moment to try and play with this.
We’re trying to understand the Slug concept, but can’t find out how to see what you have in the first image you posted in this thread. To be honest, we’re not even sure if we still need that as you said later [quote=“NigelG, post:11, topic:3343”]
another way to do this and it doesn’t need the messing about with the URL.
[/quote]
@Nigel we’re going to push on Monday a fix to a bug that your method was relying on. So you should change the system in one way (it’s quick).
Instead of getting the unique ID from the page’s thing (which doesn’t exist, that’s the bug: you shouldn’t have it…), use ‘Get data from URL’ and pick ‘Path’. That’ll do exactly the same, and it’s cleaner.
Im i bit lost here, i don’t know if this is the right thread but im going to try it…
In my service, users will signup and they have a “username” field on the Users data type. Is it posible to automatically assign that username as their unique url?
For example if i signup and entered “charlie” as my username, my profile link will be domainname.com/charlie
In which case the page name is users, and on that page you will use “get path” to find charlie and search the database for that user and display their stuff.