Help with redirect		
	
	
	
		
	
	
	
	
	
		
		
				
		- 
			mkrokos
		
- 
													Topic Author
											
- 
				
	Offline
			
- 
				New Member			
- 
				  
		Less
		More
		
			
									- 
						Posts: 15					
- 
						Thank you received: 0					
- 
											
- 
											
 
	 
		 
		
			
	
						11 years 2 months ago		 -  11 years 2 months ago		#2915
		by mkrokos
	
	
	
		Last edit: 11 years 2 months ago  by mkrokos.			
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
- 
						Thank you received: 441					
- 
											
- 
											
 
	 
		 
		
	 
	
		
				
		- 
			mkrokos
		
- 
													Topic Author
											
- 
				
	Offline
			
- 
				New Member			
- 
				  
		Less
		More
		
			
									- 
						Posts: 15					
- 
						Thank you received: 0					
- 
											
- 
											
 
	 
		 
		
			
	
						11 years 2 months ago				#2919
		by mkrokos
	
	
		
			
			
				Hello Luigi,
the only way I can think of is to make a query that will do the following:
- Pull the catid from the K2 item with the id 1381
- Pull the alias of the category with that catid
Sounds like mission impossible, right?			
					 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
		- 
			mkrokos
		
- 
													Topic Author
											
- 
				
	Offline
			
- 
				New Member			
- 
				  
		Less
		More
		
			
									- 
						Posts: 15					
- 
						Thank you received: 0					
- 
											
- 
											
 
	 
		 
		
			
	
						11 years 2 months ago				#2920
		by mkrokos
	
	
		
			
			
				I have tried to add a placeholder for catalias but it's not returning anything. Unfortunately, it won't let me post it here, not even wrapped in [code] tags. Too much security! 
 
			 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
	
		Less
		More
		
			
									- 
						Posts: 3194					
- 
						Thank you received: 441					
- 
											
- 
											
 
	 
		 
		
			
	
						11 years 2 months ago				#2921
		by admin
	
	
		
			
			
				Yeah,
there's a protection against SQL injection, protection is never enough... 
 
Try to add these placeholders:
catid={placeholder_select #__k2_items,catid,id=id}
catname={placeholder_select #__k2_categories,alias,id=catid}
Let me know...			
 
	 
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
	
		
				
		- 
			mkrokos
		
- 
													Topic Author
											
- 
				
	Offline
			
- 
				New Member			
- 
				  
		Less
		More
		
			
									- 
						Posts: 15					
- 
						Thank you received: 0					
- 
											
- 
											
 
	 
		 
		
			
	
						11 years 2 months ago		 -  11 years 2 months ago		#2922
		by mkrokos
	
	
		
			
			
				Ah, yes! And the To URL would become something like:
http://{siteurl}/syntages/mageiriki/${catname}/${id}-${alias}
Correct?			
 
	 
	
		Last edit: 11 years 2 months ago  by mkrokos.			
			Please Log in  or Create an account to join the conversation.
	
		
			 		
													 
	 
 
	
		
	
	
	
	
	
	
 
	
		Time to create page: 0.139 seconds