Sanyaissues
Members-
Posts
93 -
Joined
-
Last visited
Profile Information
-
Gender
Not Telling
Recent Profile Visitors
4,187 profile views
Sanyaissues's Achievements
Full Member (4/6)
107
Reputation
-
Automatic translation on the website
Sanyaissues replied to SIERRA's topic in ProcessWire Language Packs
Yes we can @SIERRA. Introducing: Fluency. The complete translation enhancement suite for ProcessWire.- 1 reply
-
- 1
-
Slow performance and many file-errors after installing ProFields
Sanyaissues replied to protro's topic in General Support
@protro are you using any hook to generate images? I'm guessing here, but the behavior and logs suggest me that the slow issue is because your machine processing the images generation, probably not related with profields at all. Maybe similar? For the cache, try this https://processwire.com/modules/process-cache-control/- 1 reply
-
- 1
-
But the real question @bernhard is: Did the spambot find an answer to its 404 error, or is it doomed to wander the digital void, searching for a purpose it can’t quite find? I like to live in a world where bots can improve themselves thanks to human forum answers.
-
Webmin + Virtualmin: for web hosting management (I was a plesk user until I found webmin). Analytics: GoatCounter: No tracking analytics for simple (and usually personal) websites. Plausible: Self hosted non Google analytics.
-
@BarryP In ProcessWire, when a page is loaded, it calls a template file located in the `/site/templates/` directory. You need to find the template with that image (maybe `site/templates/home.php`, `hero-banner`, `section-intro`...) and check why there's no value for the `src` (aka: the reason why your image is broken).
-
Shared hosting recommendations US location preferred.
Sanyaissues replied to 7Studio's topic in Dev Talk
@7Studio What about an Amazon lightsail linux instance? Maybe you can try with a 2GB virtual server (they give you 3 months for free). Ubuntu or Amazon Linux instances with Webmin on top and auto backups on a S3 bucket will be cheap and pro. -
@François Lacruche you can read more about permissions in the post I linked before and security here: https://processwire.com/docs/security/ By doing `chmod -R og+rw site/assets` you added read and write permissions to `others` and `group`. The recommendation is: 0755 for directories: 7: Owner (full control: read, write, execute) 5: Group (read and execute) 5: Others (read and execute) 0644 for static files: 7: Owner: Read and write permissions (rw-) 4: Group: Read permissions (r--) 4: Others: Read permissions (r--) So just to be sure, you can execute: `chmod 755 site/assets/` (permissions for directory) and then `find site/assets/ -type f -exec chmod 644 {} \;` (permissions for files)
-
The main benefit of this thread is that I finally have a space to post in PW forums. I have this internal desire of being super active here, but as a forever-noob developer I can't participate in others people's topics. So, this post suits me hahaha. I have a secret: The infinite site hosting scheme. The only word in marketing that's more 'scheme' than 'scheme' is infinite. And when they combine infinite and secret, you can know you've officially landed in the Promised Land.
-
I tried a few more tests, and in my case, deleteAll() works every single time. But it seems like is a good idea to enable trackChange when modifying images. There are a few other examples in the forum, but they seem based on Soma's post. Hopefully someone else can explain us the why.
-
Maybe try: $this->related_tutor->template->fields->skills->getLabel($user->language); Edit: looks like $user->language is the default, but give it a try
- 1 reply
-
- related pages
- page field
-
(and 1 more)
Tagged with:
-
Check this post from Ryan If test_image_field contains multiple images your code will work. As you can see in this test we deleted 3 items from the `image` field. And here's an example to delete the first image ("all images" in the case of a single image field) If the error persists please install Tracy, run this in the console and share me the ouput: $p = pages(9999); $p->of(false); d($p->test_image_field); $p->test_image_field->deleteAll(); d($p->test_image_field); $p->save('test_image_field');
-
If you want to embed the PDF avoiding the browser's native PDF viewer you can use a third party service like smallPDF (easy way), or you can parse your own PDF and use your own viewer with something like PDF.js. You can even provide the document as Base64 instead of providing a PDF file (ninja way).
-
Try this @Edward Ver: <ul class="menu-main md:text-[16px] text-[18px]"> <!-- Loop through each child of the homepage --> <?php foreach($children as $child): ?> <!-- Check if the child has sub-children --> <?php if($child->hasChildren()): ?> <li class="menu-item-has-children"> <a href="<?= $child->url ?>" class="menu_link "> <?= $child->title ?> <i class="text-lg icon-chevron-down align-[-2px]"></i> </a> <div class="w-full border-t-2 rounded-md md:w-9/12 sub-menu mega-menu border-rose-600 max-w-[1280px] "> <div class="list-item"> <ul class="grid grid-cols-1 gap-1 lg:grid-cols-3 megamen--seclevel lg:grid-flow-col md:grid-rows-1 lg:grid-rows-11"> <!-- Loop through each sub-child --> <?php foreach($child->children() as $subchild): ?> <li class="w-full"> <a href="<?= $subchild->url ?>"><?= $subchild->title ?></a> </li> <?php endforeach; ?> </ul> </div> </div> </li> <!-- If the child has no sub-children --> <?php else: ?> <li><a href="<?= $child->url ?>"><?= $child->title ?></a></li> <?php endif; ?> <?php endforeach ?> </ul> Or this alternative where the <li> for subchildren and non-subchildren is the same, but we apply different classes based on $child->hasChildren() output. <?php // Get the homepage $home = pages()->get('/'); // Get the children of the homepage $children = $home->children(); ?> <ul class="menu-main md:text-[16px] text-[18px]"> <!-- Loop through each child of the homepage --> <?php foreach($children as $child): ?> <!-- Apply 'menu-item-has-children' class if the child has sub-children --> <li class="<?= $child->hasChildren() ? 'menu-item-has-children' : '' ?>"> <a href="<?= $child->url ?>" class="menu_link"> <?= $child->title ?> <!-- Show dropdown icon if the child has sub-children --> <?php if($child->hasChildren()): ?> <i class="text-lg icon-chevron-down align-[-2px]"></i> <?php endif; ?> </a> <!-- Display sub-menu if the child has sub-children --> <?php if($child->hasChildren()): ?> <div class="w-full border-t-2 rounded-md md:w-9/12 sub-menu mega-menu border-rose-600 max-w-[1280px]"> <div class="list-item"> <ul class="grid grid-cols-1 gap-1 lg:grid-cols-3 megamen--seclevel lg:grid-flow-col md:grid-rows-1 lg:grid-rows-11"> <!-- Loop through each sub-child --> <?php foreach($child->children() as $subchild): ?> <li class="w-full"> <a href="<?= $subchild->url ?>"><?= $subchild->title ?></a> </li> <?php endforeach; ?> </ul> </div> </div> <?php endif; ?> </li> <?php endforeach; ?> </ul>