1,259 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
54
views
Slug is not created correctly due to using django parler
I have a problem creating a slug based on the title and pk, due to the use of parler.
I'm using Parler for multilinguality in my API, and when I try to create a slug like
title-pk I'm getting various ...
0
votes
1
answer
62
views
Any way to make multiple slug for wp post
I want to create a custom post type and display it using different templates based on the URL structure. Specifically, I want to show different pages depending on the template in the URL, such as:
...
0
votes
1
answer
183
views
Wordpress pass extra variables in URL as a slug
I want to create page where I can show all the category tree and on click on them show child tree of that category.
I have functionality working as short code where i am using query string to pass ...
0
votes
1
answer
79
views
Get slug to update when attribute of association changes
I have Attraction and Venue models. Their associations are:
Attraction
belongs_to :venue
Venue
has_many :attractions, dependent: :nullify
I'm using the friendly_id gem to add slugs to both. They ...
0
votes
0
answers
72
views
How to navigate to a [slug] loaded from a database in sveltekit
I am still pretty new to Sveltekit and Supabase but I want to make a website that grabs data from a table in Supabase and using a slug to navigate to a different url depending on what the user inputs ...
-1
votes
2
answers
65
views
How to resolve this NoReverseMatch error?
I am currently try make a task manager such that there are folders which have tasks in them. I am not sure what is the issue.
This is urls.py
from django.urls import path
from . import views
app_name=...
0
votes
0
answers
35
views
Eloquent Sluggable getting wrong record and not scoping based on route parameters
I have one route like this: /vehicles/vehicle-one/projects/project-one
And another route like this: /vehicles/vehicle-two/projects/project-one
I am using the Eloquent Sluggable package to handle the ...
0
votes
2
answers
360
views
Errors with Dynamic Routing in Next.js. trying to fetch and display individual details based on slug
I'm trying to get the individual slug for each job that I have posted. I am using the app router and have set up the following page: src/app/Job/[slug]/page.js
Here's the code:
async function ...
0
votes
1
answer
212
views
How to show the selected slug value as selected in <select> dropdown in Svelte
I navigate to this page with the slug param deckId, I have a dropdown menu that is bound to deckId.
My problem is that when navigating to the page or refreshing the selected option disappears. The ...
0
votes
1
answer
74
views
persian slug in django urls in page start with persian slug address
when I use persian slug to get my post details I have a special problem..
in the pages with persian slug urls in the page start with corrent page address like this :
in the page : example.com/سلام-...
0
votes
1
answer
108
views
Getting 404 error when trying to use slugs in Django
I am using Django to develop a website, and need use slugs in URLs. When I use ids, everything works well.
I have done the following steps:
I have a model Posts:
class Post(models.Model):
title =...
0
votes
0
answers
39
views
Using slugs with Django (Form + Model)
I have the following error:
Error in page
Django admin DB
Shell object
The logic that I use in Django is based on a model and the ModelForm class.
Here is the model:
from django.db import models
from ...
1
vote
1
answer
178
views
Translation of entire URLs using the app router
Next.js 14 using the new app router covers dynamic routes...
en/[slug]
...and routes for multiple languages:
[lang]/contact-us
One thing that is not covered anywhere is a combination of both. I want ...
0
votes
1
answer
157
views
Django Raise Error When Slug Already Exist
I have a simple model like this:
class MyModel(models.Model):
title = models.CharField(max_length=255)
slug = AutoSlugField(populate_from='title', unique=True, error_messages={'unique':"The slug ...
0
votes
1
answer
127
views
How to get a slug in Ruby on Rails and use it as body class for the page?
I'm a noob in Ruby, and I have this project where I really need pages to have unique classes/ids. That would be very convenient for stying.
Each page on the website has a slug. Like www.site.com/page-...