CFI: где формируется импорт?

3 years 11 months ago - 3 years 11 months ago #8429 by damarkuzz
Здравствуйте, пытаюсь расширить функционал CFI.
Требуется возможность импорта фотографии.

Разобрался, как её экспортировать, нужно отредактировать код в файле cfi.php:
foreach ($articles as $article) {
			$outItem = [];
            $outItem[] = $article->id;
            $outItem[] = $article->catid;
            $outItem[] = $childrenFull[$article->catid]->path;
            $outItem[] = str_replace(["\n", "\r"], '', $article->title);
            $outItem[] = str_replace(["\n", "\r"], '', $article->language);
            $outItem[] = str_replace(["\n", "\r"], '', $article->introtext);
            $outItem[] = str_replace(["\n", "\r"], '', $article->fulltext);
			$images = json_decode($article->images, JSON_OBJECT_AS_ARRAY);
			$outItem[] = $images['image_intro'];

По логике, необходимо $images обратно кодировать в JSON, но куда и в каком файле?
И какой командой это выполнить? $images = json_encode($article->images, JSON_OBJECT_AS_ARRAY);?

Благодарю администрацию за замечательный форму и расширения!
Last edit: 3 years 11 months ago by damarkuzz.

Please Log in or Create an account to join the conversation.

3 years 10 months ago #8433 by JoomLine
Здравствуйте. Дело в том, что мы расширение делали для импорта в поля Joomla. Объекты самого материала заполняются по минимуму.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Last from the forum

    • Enhance Your Outdoor Living Space - California Poo...
    • A well-designed pool is more than just a place to swim—it’s the centerpiece of your outdoor living space. Beyond pool construction, we offer a range of additional features and amenities to enhance your backyard oasis. Imagine relaxing spa areas, elegant poolside landscaping, custom lighting options, and integrated waterfalls or fountains. With our holistic approach to outdoor design, we create environments that are both visually stunning and functionally inviting.
    • In English Forum / Plugins
    • Blog prison security
    • Are you in charge of prison security and looking for reliable, state-of-the-art solutions to secure your facilities? Look no further than our advanced prison locks, designed to provide maximum security and peace of mind. At prison locks, we understand the critical importance of maintaining secure environments within correctional facilities. Our are engineered with cutting-edge technology to withstand tampering and unauthorized access, ensuring the safety of inmates, staff, and visitors alike.
    • In English Forum / Component
    • protein powder manufacturer blog
    • Are you looking to elevate your fitness journey and achieve your health goals more efficiently? Look no further than our , crafted with the highest quality ingredients to support muscle growth, recovery, and overall wellness. Our state-of-the-art manufacturing process ensures that each scoop delivers optimal nutrition, providing you with the essential amino acids and nutrients needed to fuel your body and maximize your performance. Whether you're an athlete, a fitness enthusiast, or simply someone striving for a healthier lifestyle, our protein powder is designed to meet your unique needs.
    • In English Forum / Component
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.