# Use this when using EXT:realurl or similar
# Sets action manually when bypassing action GP in RealUrl config

# Needed for RealUrl Auto-Config delivered with this extension
# Add this static TS to the blogsystem plugin page only to preserve cache!

[globalVar = GP:tx_t3extblog_blogsystem|post > 0]
	config.defaultGetVars {
	  tx_t3extblog_blogsystem.action = show
	}
[global]

[globalVar = GP:tx_t3extblog_blogsystem|permalinkPost > 0]
	config.defaultGetVars {
	  tx_t3extblog_blogsystem.action = permalink
	}
[global]

[globalVar = GP:tx_t3extblog_blogsystem|previewPost > 0]
	config.defaultGetVars {
	  tx_t3extblog_blogsystem.action = preview
	}
[global]

[globalVar = GP:tx_t3extblog_blogsystem|category > 0]
	config.defaultGetVars {
	  tx_t3extblog_blogsystem.action = category
	}
[global]

# Test for empty getVar seems not possible so we use a regex
[globalString = GP:tx_t3extblog_blogsystem|tag = /^(?!\s*$).+/]
	config.defaultGetVars {
	  tx_t3extblog_blogsystem.action = tag
	}
[global]

[globalVar = GP:tx_t3extblog_blogsystem|controller = "Comment"]
	config.defaultGetVars {
	  tx_t3extblog_blogsystem.action = create
	}
[global]