Admin Use: Difference between revisions
No edit summary |
No edit summary |
||
(33 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#formlink:form=Mag_Issue|link type=button|Link text="ADD a YARN Issue"|target=YARN{{#expr:{{PAGESINCATEGORY:YARN_Issue|Pages|R}}+1}}}} | {{#formlink:form=Mag_Issue|link type=button|Link text="ADD a YARN Issue"|target=YARN{{#expr:{{PAGESINCATEGORY:YARN_Issue|Pages|R}}+1}}}} | ||
Special link for Next YARN issue | |||
[[Library_01]] | |||
[[Library_02]] | |||
[[Library_03]] | |||
[[Library_04]] | |||
[[Library_05]] | |||
[[Library_06]] | |||
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |||
=== '''Link Buttons to add a template to a Photograph page''' === | |||
' | |||
' | |||
{{#formlink:form=Photograph|link type=button|Link text="ADD a Photograph"|target=File:Photo{{#expr:{{PAGESINCATEGORY:Photograph|File|R}}+5000001}}.png}} | |||
If the Photo file still needs to be uploaded | |||
{{#formlink:form=Photograph|link type=button|Link text="ADD a Photograph"|target=File:Photo{{#expr:{{PAGESINCATEGORY:Photograph|File|R}}+5000000}}.png}} | |||
If the photo file has already been uploaded | |||
{{PAGESINCATEGORY:Photograph|File|R}} | |||
Note: Select the TOP button if the photo file still needs to be uploaded, or the BOTTOM button if the photo file has already been uploaded with a compliant file name. | |||
The difference between the two options is the number that is generated. if the photo file is already uploaded the generated number has to reflect number of files in the Category, otherwise it needs to represent one mor than the number of files in the Category. The file format is Photo5NNNNNN.png, where NNNNNN is the generated number, but the page name is prefixed with "File:" because all the Pages for uploaded files are in the 'File' Category. | |||
You need to be in control of both steps of the process (upload files, and add template) and it would be best if you are able to see the photo when you populate the Template, otherwise you will have to have notes to refer to. All photo's uploaded need to be in the .png format because the file extension is hard coded into the pagename generating code. This was on the advice that this was the best format for websites which might only apply to more graphical images as opposed to photographs. I have found the graphics editor Paint.net (opensource) to be an excellent piece of software if you need to change a format, even if all you use it for is cropping, adjusting contrast or changing file formats. | |||
Data can always be edited if something goes wrong but that will always be best done by editing the template data, rather than recreating the image file with a new/corrected name. Until Photo data gets linked to pages, the page name for a photo is immaterial. |
Latest revision as of 04:21, 26 September 2024
Special link for Next YARN issue
Library_01 Library_02 Library_03 Library_04 Library_05 Library_06
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Link Buttons to add a template to a Photograph page
' '
If the Photo file still needs to be uploaded
If the photo file has already been uploaded
5
Note: Select the TOP button if the photo file still needs to be uploaded, or the BOTTOM button if the photo file has already been uploaded with a compliant file name.
The difference between the two options is the number that is generated. if the photo file is already uploaded the generated number has to reflect number of files in the Category, otherwise it needs to represent one mor than the number of files in the Category. The file format is Photo5NNNNNN.png, where NNNNNN is the generated number, but the page name is prefixed with "File:" because all the Pages for uploaded files are in the 'File' Category.
You need to be in control of both steps of the process (upload files, and add template) and it would be best if you are able to see the photo when you populate the Template, otherwise you will have to have notes to refer to. All photo's uploaded need to be in the .png format because the file extension is hard coded into the pagename generating code. This was on the advice that this was the best format for websites which might only apply to more graphical images as opposed to photographs. I have found the graphics editor Paint.net (opensource) to be an excellent piece of software if you need to change a format, even if all you use it for is cropping, adjusting contrast or changing file formats.
Data can always be edited if something goes wrong but that will always be best done by editing the template data, rather than recreating the image file with a new/corrected name. Until Photo data gets linked to pages, the page name for a photo is immaterial.