-
Content Count
9 -
Joined
-
Last visited
Community Reputation
8 NeutralAbout carlitoselmago
-
Rank
Newbie
Profile Information
-
Gender
Not Telling
Recent Profile Visitors
306 profile views
-
Oh I see, actually I did read your post too quick. It is possible, I did something like that once having a field that would go download automatically some info from a website. I found this post on stackoverflow that contains a function to do that. https://stackoverflow.com/questions/3711357/getting-title-and-meta-tags-from-external-website/4640613 That just grabs the basic meta tags but the opengraph ones are just the same, they allways contain this <meta property="og:something" content="something" />
-
I just made today a class for Processwire that automates the process quite a bit. It's really basic, I will improve it in the future. https://github.com/carlitoselmago/opengraphPW It's used like this: <head> <?php include_once("./opengraphPW/opengraphPW.php"); $OG=new openGraph( $page, // current PW page, required $pages, // PW pages wire object, required $config->urls->templates.'img/cover.jpg', // A general image (1200x628px recomended) for pages like a home page where there's no content image, optional "Title of your website"); // A generic title if the home element is called something like "home", optional ?> </head>
-
Thanks! I'm still learning
-
Actually I did published it yesterday on the modules section and I ended up in the module page but now I cannot seem to find it in the module section. It's the first time I publish a module so I don't know if there's something like a reviewing process or something like that.
-
FieldtypeGridSpace A grid selector for space design An input field for placing DOM elements in horizontal grids based on Bootstrap grid system. Module URL: https://processwire.com/modules/fieldtype-grid-space/ Here is the github https://github.com/carlitoselmago/FieldtypeGridSpace With updated images of backend and frontend example
-
carlitoselmago changed their profile photo
-
I'm building a fieldtype/inputfield to visually select a grid like Bootstrap since it's the first time coding such thing, I'm basing my code in FieldtypeColorPicker since the base structure is the same, a graphical UI helper to finally output a string as value. The problem is I try to save the value as something like "1,2,3" referencing the index of each column selected but it gets converted as an int value so "1,2,3" becomes "1" if input random text it gets converted as "0". Here is the code: https://github.com/carlitoselmago/FieldtypeGridSpace Here's an screenshot of how it looks