Drupal Notes
- Banners: 1920 x 455 x 72 dpi - limit to 150 kb
- Article headers: 1170 x 450 x 72 dpi - limit to 120 kb
- Do not create inline custom blocks (in Layout Builder)
- Never press delete on anything (until you are 100% sure that you know what you are doing)
- When creating a new block make sure to go Structure -> Block Layout -> Custom Block Library -> use blue button to add block
- Sign out after working on Websites
- Edit Blocks by going to layout -> pressing configure -> copying the title of the block -> go to Block Layout and search the title -> edit from there
- To go to testing page type /testing-page
- In order to go to the source code make sure the text format says Rich Text Editor (Source) and NOT Rich Text Editor (Limited)
- When using a block from other pages do not make adjustments to the block so that changes aren’t seen in other pages.
- If unsure about anything, it's better to just not touch it at all.
- Only comment out code if code will most likely be reused at another time and the code can’t be found in other places.
- For articles, uncheck generate automatic url alias and put your own using the keywords. Also, display options -> show article in the spotlight
- Use the rich text editor (source or limited)
- Open link in new tab if not affiliated with ucr
- Use WYSIWYG for photos so that they scale nicely on mobile
- Other images that go into the article should be cropped to look nice
- Be careful when editing blocks because it will change it everywhere that block is placed on the website (so just know beforehand where all those blocks are)
- For articles use H5 and bold for headings
- When updating the google analytics documents for the month-over-month stats, make sure to make a copy and then update the statistics
- Internal links should never create a new tab
- External links should always create a new tab
- When typing shortened dates, like ’19, the apostrophe has to face to the left. So type an apostrophe twice and delete the first apostrophe. (APA standards)
- When creating a new parallax effect, copy & paste from this resource, change the url from admissions to business, the image used must have a height s.t., the ratio is lesser than 16:9, so 16:10 or 16:11 or whichever.
- Also when adding the new section, tag it with parallax-section <insert custom section name here>
- So for example, if you wanted to make a parallax for undergraduate success, you could tag the parallax section with parallax-section ugrad-success
- Article summaries should have a maximum of 160 characters.
- Blog posts should, under display options, be checked as “show under spotlight”
- With articles featuring alumni, use tags: “Featured Alumni”