Jump to content

ctech

Members
  • Posts

    7
  • Joined

  • Last visited

ctech's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. Hi @kongondo Hope you're doing well, can't believe it's been almost another year! I have another question for you that I'm hoping you can help with. I am trying to format my blog archive widget such that the names of the months only appear once in the list, with the corresponding years associated with each month displayed, for example, something like this: Unfortunately, the actual output is like this (notice the repeating "September" for both 2020 and 2021): I've been trying to edit the renderArchives() function within MarkupBlog.module trying to get it to determine the months first, before the years, but that seems impossible as the array passed to the main function is sorted by years. Any ideas how to make it work, so that the name of the month doesn't repeat twice, and instead looks like the first screenshot? I've tried various functions to determine the unique months in every year using array_column and array_merge to then not repeat the name of the month, but after many hours of no success, I'm really hoping you can point me in the right direction! Thank you in advance!
  2. Actually I seem to have figured out by setting the width to be a fixed amount, the height gets adjusted. So when I fix post_small_image_width to 570, it auto adjusts the height to 326, which is what I wanted. Sorry for the confusion!
  3. So here's the issue. Let's say I have an image that has dimensions of 1113px × 626px. When I use the renderPost function with featured image tag, the image displays properly but the image renders at 570px width but retains the 626 height (i.e. the height is not adjusted proportionally to the new width). How can I make it so that the image renders at ~326px height (which is the proportional height it should be at)? Currently, if I manually set post_small_image_height or post_large_image_height then it works, but not all my images are the same dimensions so it looks weird for other images that are differently sized.
  4. @kongondo sorry one more question; is there a way to resize the image proportionally instead of hard-setting the width/height? I note that now the width is proportional automatically, but the height is not and is always a fixed value by default. I tried playing around with the settings, but no way to make the height resize proportionally with the width of the image automatically...
  5. Thank you, that worked perfectly!!
  6. Thanks @kongondo Unfortunately, for some reason the 'tags' text field never shows up, see attached. Only description is present. What am I doing wrong?
  7. Hi @kongondo Firstly, thanks for the module. Unfortunately, I have searched everywhere for an explanation of how to display a blog image, but cannot find it anywhere. I am using the renderPosts function as follows: $blog->renderPosts("limit={$limit}",false,array('post_large_image' => 1)); This does not render the image. There's some talk about adding the "featured" tag to an image, but I can find no way to do that; there's no option to add tags to images in ProcessWire>ProcessBlog. I've already uploaded the image in the "images" section of the actual post, but it's not displaying no matter what I do. Documentation makes no reference to images. Please help!
×
×
  • Create New...