2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: January 21   (RSS)

By Jesus - January 20 - edited: January 20

Hello and happy new year for everyone,

I know its an old thread but for refence (https://www.interactivetools.com/forum/forum-posts.php?postNum=2235153#post2235153). I'm trying to make an adjustment on this code.

I want to grab the destination from a select box to use it for the permalink structure. 

Example:

Destination (table field name: destino) [Cancun,Mexico,Jamaica]

And I want my url to be: mydomainname.com/destino/post-title/

  // is autopopulate needed?
  $permalinkText   = @$_REQUEST['permalink'];
  $permalinkPrefix = $GLOBALS['schema']['permalink']['defaultValue'];
  if ($tableName == "viajes"){
	$requiredPrefix .= htmlspecialchars(@$_REQUEST['destino']);
}

So I want to be able to grab the field name from destino as the prefix for my permalink url 

Thank you for pointing me to the right direction, I know I'm missing something but I'm cycled here :p

Thanks in advance,

Jesus