Jump to content


The P-codes?


  • You cannot reply to this topic
8 replies to this topic

#1 PieDie

    Etomite Forum Fan

  • Member
  • Pip
  • 82 posts

Posted 18 May 2004 - 09:21 PM

When making or editing existing templates to use in Phase, you have to insert all codes in the template, i.e. (*content*). I call these P-codes... :wink:

Is there a listing of all the existing P-codes in Phase? Of course there are the [[SnIPpeTS]], but the others? Maybe you could post it or include it in the package...

#2 Guest_Alex_*

  • Guests

Posted 18 May 2004 - 09:26 PM

Here's a list of all the p-codes, as you call them :)


id
type
pagetitle
description
alias
published
pub_date
unpub_date
parent
isfolder
content
richtext
template
menuindex
searchable
cacheable
createdby
createdon
editedby
editedon
deleted
deletedon
deletedby

Most of these will just pritn a 1 or a 0 or some other numerical value. E.g. [*createdby*] will return your internalKey in Phase (a number that tells Phase who you are).

You can also use
[(site_name)] to paste the name of your site.

#3 PieDie

    Etomite Forum Fan

  • Member
  • Pip
  • 82 posts

Posted 19 May 2004 - 12:20 AM

And I place these between (* *) ?

Thanks for your quick reply btw...

#4 Guest_Sonic X_*

  • Guests

Posted 19 May 2004 - 05:50 AM

You should put this in the documentation or something, some of it is useful. 8)

Needed the page title to make the pages flow better. :D

#5 Guest_Alex_*

  • Guests

Posted 19 May 2004 - 06:53 AM

Quote

And I place these between (*  *) ?

Thanks for your quick reply btw...

Nah, between [* and *].

As for documentation, yeah. It's being worked on.

#6 daseymour

    Etomite Forum Newbie

  • Member
  • 4 posts

Posted 04 June 2004 - 12:21 PM

This may help... it's a little cheat sheet I wrote to help me remember :wink:.

------------------
- Phase Tags -
------------------

[[snippet]] = Executes the snipped named "snippet" or whatever is between the [[ and ]] characters.

[(setting)] = Inserts the system setting named "setting" or whatever is between the [( and )] characters. A list of settings can be found in the Phase database inside the table "_system_settings".

[*attribute*] = Inserts the current page attribute (or P-code) named "attribute" or whatever is between the [* and *] characters. A list of attributes can be found in the Phase database as the columns of the table "_site_content".


------------------------------
- Settings as of v0.5.3 -
------------------------------

cm_plugin
emailsender
emailsubject
error_page
fancy_graphs
friendly_url_prefix
friendly_url_suffix
friendly_urls
im_plugin
im_plugin_base_dir
im_plugin_base_url
manager_language
manager_layout
number_of_logs
number_of_messages
phase_charset
server_offset_time
server_protocol
settings_version
show_graphs
signupemail_message
site_name
site_start
site_status
site_unavailable_message
spyware_joke
to_plugin
use_editor
use_tree_hints
use_udperms


--------------------------------
- Attributes as of v0.5.3 -
--------------------------------

alias
cacheable
content
createdby
createdon
deleted
deletedby
deletedon
description
editedby
editedon
id
isfolder
menuindex
pagetitle
parent
pub_date
published
richtext
searchable
template
type
unpub_date

#7 JuggoPop

    Likes Etomite Forums!

  • Member
  • PipPip
  • 158 posts

Posted 30 July 2004 - 06:55 PM

so are P-Codes going to be E-codes now? :lol:

#8 mmjaeger

    Likes Etomite Forums!

  • Member
  • PipPip
  • 343 posts

Posted 24 August 2004 - 08:12 PM

Alex, on May 18 2004, 10:26 PM, said:

Here's a list of all the p-codes, as you call them :)
id
type
pagetitle
description
alias
published
pub_date
unpub_date
parent
isfolder
content
richtext
template
menuindex
searchable
cacheable
createdby
createdon
editedby
editedon
deleted
deletedon
deletedby
Most of these will just pritn a 1 or a 0 or some other numerical value. E.g. [*createdby*] will return your internalKey in Phase (a number that tells Phase who you are).
You can also use
[(site_name)] to paste the name of your site.

Hello

I'm still struggeling with all the availables "P-Codes"- e.g you haven't listed "longtitle" in the list above, but is is used in the standard template of etomite. what other p-codes are available that aren't mentioned anywhere - is there also something like shorttitle for instance?

thank you

#9 Guest_Alex_*

  • Guests

Posted 24 August 2004 - 08:27 PM

Nope, the only new one is longtitle, as I've just added that into 06 RC2.

For the settings, they change almost every version, so the best way to see which ones there are (and what their current values are), is to open phpMyAdmin, navigate to your etomite_system_settings table, and take a look at what's available there. ;)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users