A page and shortcut with query string

Vote:
 

Hi,

I have a pagetype with a aspx file that supports multiple "entries" to the file depending on what query string I send along. I would like to have a page in EPiServer that can send the query string to the aspx file.

Example:

Startpage
  About (shall enter http://domain/about)
  Test (shall enter http://domain/test?myQuery=myValue)
  Test2 (shall enter http://domain/test2?myQuery=myValue2)

Page "Test" and "Test2" is of the same pagetype but should return different views.

Is there a way to do this or do I have to determine what to be shown by editing a property?

The problem with doing it with a property is that I want to make a shortcut to the search page with some predefined criteria that is being sent with query string.

Example:

Startpage
  Search (shall enter http://domain/search)
  About (shall enter http://domain/about)
    Find all co-workers (shall enter http://domain/search?q=co-workers)

Anyone have any suggestions on how to solve this?

#51429
Jun 08, 2011 11:14
Vote:
 

It works out of the box. Just make sure that the output cache is disabled when that querystring is given.

#51431
Jun 08, 2011 12:49
Vote:
 

Hi Erik,

which of my questions is working out of the box? And how to do it?

#51437
Jun 08, 2011 14:40
Vote:
 

I think I missunderstood your question. And not sure that I understand it now either.. :)

Can u use "Shortcut" / "Link to page on other website"

Otherwise i would probably go with a simpe string property, and if it has a value, i would redirect to the searchpage with that value in the querystring.

#51441
Jun 08, 2011 15:12
Vote:
 

Or even skip the redicrect and show the search result on that page type. Probably better in a SEO perspective.

#51442
Jun 08, 2011 15:12
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.